indicate received honks that aren't fully public
This commit is contained in:
parent
46cc488d19
commit
27980a7dca
7
fun.go
7
fun.go
|
@ -50,6 +50,13 @@ func reverbolate(honks []*Honk) {
|
|||
h.URL = h.XID
|
||||
}
|
||||
}
|
||||
h.Privacy = "limited"
|
||||
for _, a := range h.Audience {
|
||||
if a == thewholeworld {
|
||||
h.Privacy = ""
|
||||
break
|
||||
}
|
||||
}
|
||||
zap := make(map[*Donk]bool)
|
||||
h.Noise = unpucker(h.Noise)
|
||||
h.HTML = cleanstring(h.Noise)
|
||||
|
|
1
honk.go
1
honk.go
|
@ -61,6 +61,7 @@ type Honk struct {
|
|||
Noise string
|
||||
Convoy string
|
||||
Audience []string
|
||||
Privacy string
|
||||
HTML template.HTML
|
||||
Donks []*Donk
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="honk {{ .Honk.What }}">
|
||||
<div class="honk {{ .Honk.What }} {{ .Honk.Privacy }}">
|
||||
{{ with .Honk }}
|
||||
<div class="title">
|
||||
<img alt="avatar" src="/a?a={{ .Honker}}">
|
||||
|
|
|
@ -150,6 +150,10 @@ button a {
|
|||
.zonked .noise a {
|
||||
color: #a79;
|
||||
}
|
||||
.limited {
|
||||
border: 1px solid #f04;
|
||||
color: #a79;
|
||||
}
|
||||
.inlineform {
|
||||
display: inline;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue