backend for xcvr appview
2
fork

Configure Feed

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

fix bugs

rachel-mp4 82e374f2 8f83ac31

+5 -5
+3 -3
migrations/002_populate.up.sql
··· 18 18 ('at://did:example:alice/org.xcvr.feed.channel/general', 'chanCid1', 'did:example:alice', 'xcvr.org', 'General Chat', 'All-purpose chatter', now() - interval '2 days'), 19 19 ('at://did:example:bob/org.xcvr.feed.channel/help', 'chanCid2', 'did:example:bob', 'xcvr.org', 'Help Channel', 'Support and help', now() - interval '1 day'); 20 20 21 - INSERT INTO signets (uri, did, channel_uri, message_id, cid) 21 + INSERT INTO signets (uri, issuer_did, did, channel_uri, message_id, cid) 22 22 VALUES 23 - ('at://did:example:xcvr/org.xcvr.lrc.signet/signet1', 'did:example:alice', 'at://did:example:alice/org.xcvr.feed.channel/general', 1, 'signetCid1'), 24 - ('at://did:example:xcvr/org.xcvr.lrc.signet/signet2', 'did:example:bob', 'at://did:example:bob/org.xcvr.feed.channel/help', 2, 'signetCid2'); 23 + ('at://did:example:xcvr/org.xcvr.lrc.signet/signet1', 'did:example:xcvr', 'did:example:alice', 'at://did:example:alice/org.xcvr.feed.channel/general', 1, 'signetCid1'), 24 + ('at://did:example:xcvr/org.xcvr.lrc.signet/signet2', 'did:example:xcvr', 'did:example:bob', 'at://did:example:bob/org.xcvr.feed.channel/help', 2, 'signetCid2'); 25 25 26 26 INSERT INTO messages (uri, did, signet_uri, body, nick, color, cid) 27 27 VALUES
+1 -1
server/internal/db/lexicon.go
··· 167 167 cid, 168 168 started_at 169 169 ) VALUES ( 170 - $1, $2, $3, $4, $5, $6, %7 170 + $1, $2, $3, $4, $5, $6, $7 171 171 ) ON CONFLICT (uri) DO NOTHING 172 172 `, signet.URI, signet.IssuerDID, signet.DID, signet.ChannelURI, signet.MessageID, signet.CID, signet.StartedAt) 173 173 if err != nil {
+1 -1
server/internal/model/channel.go
··· 177 177 } 178 178 err = m.store.StoreSignet(sr, context.Background()) 179 179 if err != nil { 180 - m.logger.Println("failed to store signet!") 180 + m.logger.Println("failed to store signet!" + err.Error()) 181 181 } 182 182 } 183 183 }