diff --git a/fun.go b/fun.go index bfad2a7..d662832 100644 --- a/fun.go +++ b/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) diff --git a/honk.go b/honk.go index 4d28b7d..b380d16 100644 --- a/honk.go +++ b/honk.go @@ -61,6 +61,7 @@ type Honk struct { Noise string Convoy string Audience []string + Privacy string HTML template.HTML Donks []*Donk } diff --git a/views/honk.html b/views/honk.html index 83aa855..8fcead5 100644 --- a/views/honk.html +++ b/views/honk.html @@ -1,4 +1,4 @@ -
+
{{ with .Honk }}
avatar diff --git a/views/style.css b/views/style.css index aaef1b2..2af2900 100644 --- a/views/style.css +++ b/views/style.css @@ -150,6 +150,10 @@ button a { .zonked .noise a { color: #a79; } +.limited { + border: 1px solid #f04; + color: #a79; +} .inlineform { display: inline; }