all repos — honk @ 92bacf5e7da1ccd7f80b61b0ca0e9611acea8f5c

my fork of honk

offer a selection of possible reactions
Ted Unangst tedu@tedunangst.com
Thu, 23 Jan 2020 23:34:38 -0500
commit

92bacf5e7da1ccd7f80b61b0ca0e9611acea8f5c

parent

89ec1d7d87dc41bd924785c69cf0ab59581b7baf

2 files changed, 13 insertions(+), 0 deletions(-)

jump to
M views/account.htmlviews/account.html

@@ -14,9 +14,21 @@ <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="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> +<select tabindex=1 name="reaction"> +<option {{ and (eq .User.Options.Reaction "😞") "selected" }}>😞</option> +<option {{ and (eq .User.Options.Reaction "\U0001F937") "selected" }}>{{ "\U0001F937" }}</option> +<option {{ and (eq .User.Options.Reaction "🙈") "selected" }}>🙈</option> +<option {{ and (eq .User.Options.Reaction "🍆") "selected" }}>🍆</option> +<option {{ and (eq .User.Options.Reaction "\U0001F32E") "selected" }}>{{ "\U0001F32E" }}</option> +<option {{ and (eq .User.Options.Reaction "🗿") "selected" }}>🗿</option> +<option {{ and (eq .User.Options.Reaction "\U0001FA93") "selected" }}>{{ "\U0001FA93" }}</option> +<option {{ and (eq .User.Options.Reaction "\U0001F9BE") "selected" }}>{{ "\U0001F9BE" }}</option> +</select> <p><button>update settings</button> </form> </div> +<hr> <div> <form action="/chpass" method="POST"> <input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
M web.goweb.go

@@ -1132,6 +1132,7 @@ options.MapLink = "apple"

} else { options.MapLink = "" } + options.Reaction = r.FormValue("reaction") if ava := re_avatar.FindString(whatabout); ava != "" { whatabout = re_avatar.ReplaceAllString(whatabout, "") ava = ava[7:]