Monorepo for Tangled tangled.org
2

Configure Feed

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

appview: remove `db.GetReaction()`

After refactoring record deletion logic, we only need
`db.GetReactionStatus`

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
date (Jun 25, 2026, 2:51 AM +0900) commit e6cb8396 parent 67dfcb8a change-id sqkrqopz
-28
-28
appview/db/reaction.go
··· 2 2 3 3 import ( 4 4 "fmt" 5 - "log" 6 5 "time" 7 6 8 7 "github.com/bluesky-social/indigo/atproto/syntax" ··· 25 24 reaction.Created.Format(time.RFC3339), 26 25 ) 27 26 return err 28 - } 29 - 30 - // Get a reaction record 31 - func GetReaction(e Execer, did string, subjectAt syntax.ATURI, kind models.ReactionKind) (*models.Reaction, error) { 32 - query := ` 33 - select did, subject_at, created, rkey 34 - from reactions 35 - where did = ? and subject_at = ? and kind = ?` 36 - row := e.QueryRow(query, did, subjectAt, kind) 37 - 38 - var reaction models.Reaction 39 - var created string 40 - err := row.Scan(&reaction.ReactedByDid, &reaction.ThreadAt, &created, &reaction.Rkey) 41 - if err != nil { 42 - return nil, err 43 - } 44 - 45 - createdAtTime, err := time.Parse(time.RFC3339, created) 46 - if err != nil { 47 - log.Println("unable to determine followed at time") 48 - reaction.Created = time.Now() 49 - } else { 50 - reaction.Created = createdAtTime 51 - } 52 - 53 - return &reaction, nil 54 27 } 55 28 56 29 // Remove a reaction ··· 215 188 if _, ok := result[aturi]; !ok { 216 189 result[aturi] = make(map[models.ReactionKind]bool) 217 190 } 218 - 219 191 result[aturi][kind] = true 220 192 } 221 193