Monorepo for Tangled tangled.org
2

Configure Feed

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

appview/{issues,pulls,repo}: populate recent links on visit

Signed-off-by: oppiliappan <me@oppi.li>

author
oppiliappan
date (Jun 8, 2026, 2:45 PM +0100) commit 0376ea8b parent 4d2a3112 change-id wvyxpssx
+24
+7
appview/issues/issues.go
··· 107 107 l.Error("failed to mark issue notifications as read", "err", err) 108 108 } 109 109 }() 110 + 111 + atUri := issue.AtUri().String() 112 + go func() { 113 + if err := db.UpsertRecentLink(rp.db, userDid, models.RecentLinkTypeIssue, atUri); err != nil { 114 + l.Error("failed to upsert recent link", "err", err) 115 + } 116 + }() 110 117 } 111 118 112 119 entities := []syntax.ATURI{issue.AtUri()}
+7
appview/pulls/single.go
··· 110 110 l.Error("failed to mark pull notifications as read", "err", err) 111 111 } 112 112 }() 113 + 114 + atUri := pull.AtUri().String() 115 + go func() { 116 + if err := db.UpsertRecentLink(s.db, userDid, models.RecentLinkTypePull, atUri); err != nil { 117 + l.Error("failed to upsert recent link", "err", err) 118 + } 119 + }() 113 120 } 114 121 115 122 backlinks, err := db.GetBacklinks(s.db, pull.AtUri())
+10
appview/repo/index.go
··· 43 43 44 44 user := rp.oauth.GetMultiAccountUser(r) 45 45 46 + if user != nil { 47 + userDid := user.Did 48 + repoDid := f.RepoDid 49 + go func() { 50 + if err := db.UpsertRecentLink(rp.db, userDid, models.RecentLinkTypeRepo, repoDid); err != nil { 51 + l.Error("failed to upsert recent link", "err", err) 52 + } 53 + }() 54 + } 55 + 46 56 // Build index response from multiple XRPC calls 47 57 result, err := rp.buildIndexResponse(r.Context(), f, ref) 48 58 if err != nil {