Coffee journaling on ATProto (alpha) alpha.arabica.social
coffee
17
fork

Configure Feed

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

fix: fix like button only being clickable once per page render (#8)

* fix: fix like button only being clickable once per page render

authored by

Patrick Dewey and committed by
GitHub
6e0b3512 c535dd9f

+9 -4
+4
BACKLOG.md
··· 66 66 - Firehose maybe not backfilling likes 67 67 68 68 - TODO: add OpenGraph embeds (mainly for brews; beans and roasters can come later) 69 + 70 + - Fix opengraph to show handle, record type and date? 71 + - Then show brewer and bean? 72 + - Add an image of some kind as well
+5 -4
internal/handlers/handlers.go
··· 1236 1236 1237 1237 // Return the updated like button component 1238 1238 if err := components.LikeButton(components.LikeButtonProps{ 1239 - SubjectURI: subjectURI, 1240 - SubjectCID: subjectCID, 1241 - IsLiked: isLiked, 1242 - LikeCount: likeCount, 1239 + SubjectURI: subjectURI, 1240 + SubjectCID: subjectCID, 1241 + IsLiked: isLiked, 1242 + LikeCount: likeCount, 1243 + IsAuthenticated: true, 1243 1244 }).Render(r.Context(), w); err != nil { 1244 1245 http.Error(w, "Failed to render", http.StatusInternalServerError) 1245 1246 log.Error().Err(err).Msg("Failed to render like button")