tangled
alpha
login
or
join now
moth11.net
/
88x31
0
fork
atom
tiny 88x31 lexicon for atproto
0
fork
atom
overview
issues
pulls
pipelines
just checking
moth11.net
1 month ago
c07cb22f
eca902e8
+1
-2
2 changed files
expand all
collapse all
unified
split
atplistener
jetstream.go
db
lexicon.go
+1
-1
atplistener/jetstream.go
···
124
124
return fmt.Sprintf("at://%s/%s/%s", event.Did, event.Commit.Collection, event.Commit.RKey)
125
125
}
126
126
func (h *handler) handleLike(ctx context.Context, event *models.Event) error {
127
127
-
h.l.Debug("handling like")
127
127
+
h.l.Error("handling like")
128
128
switch event.Commit.Operation {
129
129
case "create", "update":
130
130
return h.handleLikeCreateUpdate(ctx, event)
-1
db/lexicon.go
···
269
269
cid = EXCLUDED.cid,
270
270
posted_at = EXCLUDED.posted_at,
271
271
indexed_at = now()
272
272
-
273
272
`, tbr.URI, tbr.DID, tbr.BlobCID, tbr.BlobMIME, tbr.Alt, tbr.Title, tbr.HREF, tbr.CID, tbr.PostedAt)
274
273
return err
275
274
}