make quote inlining an option
Ted Unangst tedu@tedunangst.com
Thu, 26 Jan 2023 16:38:52 -0500
4 files changed,
20 insertions(+),
11 deletions(-)
M
activity.go
→
activity.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.go
→
honk.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.html
→
views/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>