tiny 88x31 lexicon for atproto
0
fork

Configure Feed

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

this is what i get for having passablish lorem ipsum + not looking at error

+13 -5
+12 -4
handler/handler.go
··· 91 91 if err != nil || len(btnView) == 0 { 92 92 btnView = nil 93 93 } 94 - type homedata struct { 95 - cs *oauth.ClientSession 96 - btnView []types.ButtonView 94 + type HomeData struct { 95 + DID *string 96 + Title string 97 + Buttons []types.ButtonView 97 98 } 99 + var hd HomeData 100 + if cs != nil { 101 + did := cs.Data.AccountDID.String() 102 + hd.DID = &did 103 + } 104 + hd.Title = "upload" 105 + hd.Buttons = btnView 98 106 99 - err = homeT.ExecuteTemplate(w, "base.html", homedata{cs, btnView}) 107 + err = homeT.ExecuteTemplate(w, "base.html", hd) 100 108 if err != nil { 101 109 http.Error(w, err.Error(), http.StatusInternalServerError) 102 110 }
+1 -1
types/lexicon.go
··· 20 20 DID string `json:"did"` 21 21 Src string `json:"src"` 22 22 Alt *string `json:"alt,omitempty"` 23 - Href *string `json:"href,omitempty"` 23 + HREF *string `json:"href,omitempty"` 24 24 }