[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

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

ignore duplicate likes

+4 -1
+1 -1
lexicons/so/sprk/feed/like.json
··· 4 4 "defs": { 5 5 "main": { 6 6 "type": "record", 7 - "description": "Record declaring a 'like' of a piece of subject content.", 7 + "description": "Record declaring a 'like' of a piece of subject content. Duplicate likes from the same author to the same subject will be ignored by the AppView.", 8 8 "key": "tid", 9 9 "record": { 10 10 "type": "object",
+3
services/ingester/src/db/models.ts
··· 22 22 cid: { type: String, required: true }, 23 23 }) 24 24 25 + // Add compound index to prevent duplicate likes 26 + likeSchema.index({ authorDid: 1, subject: 1 }, { unique: true }) 27 + 25 28 export interface LookDocument extends Document { 26 29 uri: string 27 30 subject: string