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.
|
Join the federation in the fight against the evil empire.
|
||||||
|
|
||||||
Send honks. Receive honks. And not just honks.
|
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.
|
Public RSS.
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@ changelog
|
||||||
|
|
||||||
-- next
|
-- next
|
||||||
|
|
||||||
|
+ Tonks are now honk backs.
|
||||||
|
|
||||||
+ Show both avatars for bonks. Other minor refinements to UI.
|
+ Show both avatars for bonks. Other minor refinements to UI.
|
||||||
|
|
||||||
+ Minimal support for Video activity and PeerTube compat.
|
+ Minimal support for Video activity and PeerTube compat.
|
||||||
|
|
|
@ -14,7 +14,7 @@ Limited markdown support:
|
||||||
|
|
||||||
Large images are rescaled and reduced.
|
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
|
-- sensitive honks
|
||||||
|
|
||||||
|
|
7
fun.go
7
fun.go
|
@ -35,6 +35,13 @@ func reverbolate(honks []*Honk) {
|
||||||
filt := htfilter.New()
|
filt := htfilter.New()
|
||||||
for _, h := range honks {
|
for _, h := range honks {
|
||||||
h.What += "ed"
|
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 {
|
if h.Whofore == 2 || h.Whofore == 3 {
|
||||||
h.URL = h.XID
|
h.URL = h.XID
|
||||||
h.Noise = mentionize(h.Noise)
|
h.Noise = mentionize(h.Noise)
|
||||||
|
|
1
honk.go
1
honk.go
|
@ -71,6 +71,7 @@ type Honk struct {
|
||||||
Public bool
|
Public bool
|
||||||
Whofore int64
|
Whofore int64
|
||||||
HTML template.HTML
|
HTML template.HTML
|
||||||
|
Style string
|
||||||
Donks []*Donk
|
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 }}
|
{{ $bonkcsrf := .BonkCSRF }}
|
||||||
{{ with .Honk }}
|
{{ with .Honk }}
|
||||||
<header>
|
<header>
|
||||||
|
@ -68,7 +68,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<button disabled>nope</button>
|
<button disabled>nope</button>
|
||||||
{{ end }}
|
{{ 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="muteit(this, '{{ .Honk.Convoy }}');">mute</button>
|
||||||
<button onclick="zonkit(this, '{{ .Honk.XID }}');">zonk</button>
|
<button onclick="zonkit(this, '{{ .Honk.XID }}');">zonk</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -149,13 +149,13 @@ input[type=file] {
|
||||||
.honk button {
|
.honk button {
|
||||||
margin-left: 4em;
|
margin-left: 4em;
|
||||||
}
|
}
|
||||||
.tonked {
|
.subtle {
|
||||||
}
|
}
|
||||||
.tonked .noise {
|
.subtle .noise {
|
||||||
color: #aab;
|
color: #aab;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
.tonked .noise a {
|
.subtle .noise a {
|
||||||
color: #aab;
|
color: #aab;
|
||||||
}
|
}
|
||||||
.limited {
|
.limited {
|
||||||
|
|
Loading…
Reference in New Issue