all repos — honk @ 15d6fd92771656efcc2b09feb9e1cba2b3333fd4

my fork of honk

indicate received honks that aren't fully public
Ted Unangst tedu@tedunangst.com
Sun, 28 Apr 2019 18:41:10 -0400
commit

15d6fd92771656efcc2b09feb9e1cba2b3333fd4

parent

0a5cfa3e6ba65a37f466f206cd04b35191f574fd

4 files changed, 13 insertions(+), 1 deletions(-)

jump to
M fun.gofun.go

@@ -50,6 +50,13 @@ if h.URL == "" {

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)
M honk.gohonk.go

@@ -61,6 +61,7 @@ URL string

Noise string Convoy string Audience []string + Privacy string HTML template.HTML Donks []*Donk }
M views/honk.htmlviews/honk.html

@@ -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}}">
M views/style.cssviews/style.css

@@ -150,6 +150,10 @@ }

.zonked .noise a { color: #a79; } +.limited { + border: 1px solid #f04; + color: #a79; +} .inlineform { display: inline; }