tiny 88x31 lexicon for atproto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

better color logic

+4 -1
+4 -1
handler/handler.go
··· 1 1 package handler 2 2 3 3 import ( 4 + "fmt" 4 5 "github.com/bluesky-social/indigo/atproto/auth/oauth" 5 6 "github.com/gorilla/sessions" 6 7 "html/template" ··· 198 199 func (h *Handler) getuserlikes(w http.ResponseWriter, r *http.Request) { 199 200 did := r.URL.Query().Get("did") 200 201 bg := r.URL.Query().Get("bg") 201 - if bg == "" { 202 + if len(bg) == 6 { 203 + bg = fmt.Sprintf("#%s", bg) 204 + } else { 202 205 bg = "white" 203 206 } 204 207 cursor := r.URL.Query().Get("cursor")