upon further consultation with the golden goose,
tonks will henceforth be known as honk backs.
This commit is contained in:
parent
a02faab3fe
commit
7837d50fd4
2
README
2
README
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -14,7 +14,7 @@ Limited markdown support:
|
|||
|
||||
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
|
||||
|
||||
|
|
7
fun.go
7
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)
|
||||
|
|
1
honk.go
1
honk.go
|
@ -71,6 +71,7 @@ type Honk struct {
|
|||
Public bool
|
||||
Whofore int64
|
||||
HTML template.HTML
|
||||
Style string
|
||||
Donks []*Donk
|
||||
}
|
||||
|
||||
|
|
|
@ -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 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|||
{{ 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>
|
||||
|
|
|
@ -149,13 +149,13 @@ input[type=file] {
|
|||
.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 {
|
||||
|
|
Loading…
Reference in New Issue