upon further consultation with the golden goose, tonks will henceforth be known as honk backs.
Ted Unangst tedu@tedunangst.com
Sun, 07 Jul 2019 20:24:54 -0400
7 files changed,
17 insertions(+),
7 deletions(-)
M
docs/changelog.txt
→
docs/changelog.txt
@@ -2,6 +2,8 @@ changelog
-- next ++ Tonks are now honk backs. + + Show both avatars for bonks. Other minor refinements to UI. + Minimal support for Video activity and PeerTube compat.
M
docs/manual.txt
→
docs/manual.txt
@@ -14,7 +14,7 @@ > quote
Large images are rescaled and reduced. -The tonk button will prefill the forms for replies. +The honk back button will prefill the forms for replies. -- sensitive honks
M
fun.go
→
fun.go
@@ -35,6 +35,13 @@ func reverbolate(honks []*Honk) {
filt := htfilter.New() for _, h := range honks { h.What += "ed" + if h.What == "tonked" { + h.What = "honked back" + h.Style = "subtle" + } + if !h.Public { + h.Style = "limited" + } if h.Whofore == 2 || h.Whofore == 3 { h.URL = h.XID h.Noise = mentionize(h.Noise)
M
views/honk.html
→
views/honk.html
@@ -1,4 +1,4 @@
-<article class="honk {{ .Honk.What }} {{ and (not .Honk.Public) "limited" }}" data-convoy="{{ .Honk.Convoy }}"> +<article class="honk {{ .Honk.Style }}" data-convoy="{{ .Honk.Convoy }}"> {{ $bonkcsrf := .BonkCSRF }} {{ with .Honk }} <header>@@ -68,7 +68,7 @@ <button onclick="bonk(this, '{{ .Honk.XID }}');">bonk</button>
{{ else }} <button disabled>nope</button> {{ end }} -<button onclick="showhonkform(this, '{{ .Honk.XID }}', '{{ .Honk.Handle }}');">tonk</button> +<button onclick="showhonkform(this, '{{ .Honk.XID }}', '{{ .Honk.Handle }}');">honk back</button> <button onclick="muteit(this, '{{ .Honk.Convoy }}');">mute</button> <button onclick="zonkit(this, '{{ .Honk.XID }}');">zonk</button> </div>
M
views/style.css
→
views/style.css
@@ -149,13 +149,13 @@ }
.honk button { margin-left: 4em; } -.tonked { +.subtle { } -.tonked .noise { +.subtle .noise { color: #aab; font-size: 0.8em; } -.tonked .noise a { +.subtle .noise a { color: #aab; } .limited {