all repos — honk @ dc8ee50b8745d4b72b2826177ed756342b0684df

my fork of honk

make quote inlining an option
Ted Unangst tedu@tedunangst.com
Thu, 26 Jan 2023 16:38:52 -0500
commit

dc8ee50b8745d4b72b2826177ed756342b0684df

parent

40aeb02291615dc20350a84224c43813ce254c12

4 files changed, 20 insertions(+), 11 deletions(-)

jump to
M activity.goactivity.go

@@ -778,7 +778,9 @@ if waspage {

content += fmt.Sprintf(`<p><a href="%s">%s</a>`, url, url) url = xid } - content = qutify(user, content) + if user.Options.InlineQuotes { + content = qutify(user, content) + } rid, ok = obj.GetString("inReplyTo") if !ok { if robj, ok := obj.GetMap("inReplyTo"); ok {
M honk.gohonk.go

@@ -51,15 +51,16 @@ SecKey httpsig.PrivateKey

} type UserOptions struct { - SkinnyCSS bool `json:",omitempty"` - OmitImages bool `json:",omitempty"` - MentionAll bool `json:",omitempty"` - Avatar string `json:",omitempty"` - Banner string `json:",omitempty"` - MapLink string `json:",omitempty"` - Reaction string `json:",omitempty"` - MeCount int64 - ChatCount int64 + SkinnyCSS bool `json:",omitempty"` + OmitImages bool `json:",omitempty"` + MentionAll bool `json:",omitempty"` + InlineQuotes bool `json:",omitempty"` + Avatar string `json:",omitempty"` + Banner string `json:",omitempty"` + MapLink string `json:",omitempty"` + Reaction string `json:",omitempty"` + MeCount int64 + ChatCount int64 } type KeyInfo struct {
M views/account.htmlviews/account.html

@@ -14,7 +14,8 @@ <p><label class="button" for="omitimages">omit images:</label>

<input tabindex=1 type="checkbox" id="omitimages" name="omitimages" value="omitimages" {{ if .User.Options.OmitImages }}checked{{ end }}><span></span> <p><label class="button" for="mentionall">mention all:</label> <input tabindex=1 type="checkbox" id="mentionall" name="mentionall" value="mentionall" {{ if .User.Options.MentionAll }}checked{{ end }}><span></span> - +<p><label class="button" for="inlineqts">inline quotes:</label> +<input tabindex=1 type="checkbox" id="inlineqts" name="inlineqts" value="inlineqts" {{ if .User.Options.InlineQuotes }}checked{{ end }}><span></span> <p><label class="button" for="maps">apple map links:</label> <input tabindex=1 type="checkbox" id="maps" name="maps" value="apple" {{ if eq "apple" .User.Options.MapLink }}checked{{ end }}><span></span> <p><label class="button" for="reaction">reaction:</label>
M web.goweb.go

@@ -1134,6 +1134,11 @@ options.MentionAll = true

} else { options.MentionAll = false } + if r.FormValue("inlineqts") == "inlineqts" { + options.InlineQuotes = true + } else { + options.InlineQuotes = false + } if r.FormValue("maps") == "apple" { options.MapLink = "apple" } else {