tiny 88x31 lexicon for atproto
0
fork

Configure Feed

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

ui to delete

+7 -1
-1
handler/upload.go
··· 115 115 return 116 116 } 117 117 } 118 - log.Println("redirecting") 119 118 http.Redirect(w, r, fmt.Sprintf("/button?uri=%s", uri), http.StatusSeeOther) 120 119 } 121 120
+7
tmpl/button.html
··· 14 14 <input type="submit" value='"like"'/> 15 15 </form> 16 16 {{end}} 17 + {{if eq .DID .Button.DID}} 18 + <form action="/unlike" method="POST"> 19 + <input type="text" name="uri" value="{{.Button.URI}}" hidden /> 20 + <input type="text" name="cid" value="{{.Button.CID}}" hidden /> 21 + <input type="submit" value='delete (permanent, one click)'/> 22 + </form> 23 + {{end}} 17 24 {{end}} 18 25 {{end}}