all repos — honk @ 55118d94a170b28b3cfb1ac00d28283a66c89302

my fork of honk

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
commit

55118d94a170b28b3cfb1ac00d28283a66c89302

parent

f75b4a2427a12311d530a24c3e705f09ae607eea

7 files changed, 17 insertions(+), 7 deletions(-)

jump to
M READMEREADME

@@ -6,7 +6,7 @@ Take control of your honks.

Join the federation in the fight against the evil empire. Send honks. Receive honks. And not just honks. -Bonk, donk, tonk, all your favorite activities are here. +Bonk, donk, zonk, all your favorite activities are here. Public RSS.
M docs/changelog.txtdocs/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.txtdocs/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.gofun.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 honk.gohonk.go

@@ -71,6 +71,7 @@ Audience []string

Public bool Whofore int64 HTML template.HTML + Style string Donks []*Donk }
M views/honk.htmlviews/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.cssviews/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 {