[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.

last lex change i promise

+12 -12
+2 -2
lex/lexicons.ts
··· 17354 17354 }, 17355 17355 "viewer": { 17356 17356 "type": "ref", 17357 - "ref": "lex:so.sprk.feed.defs#viewerStateBasic", 17357 + "ref": "lex:so.sprk.feed.defs#replyViewerState", 17358 17358 }, 17359 17359 "labels": { 17360 17360 "type": "array", ··· 17365 17365 }, 17366 17366 }, 17367 17367 }, 17368 - "viewerStateBasic": { 17368 + "replyViewerState": { 17369 17369 "type": "object", 17370 17370 "description": 17371 17371 "Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.",
+8 -8
lex/types/so/sprk/feed/defs.ts
··· 53 53 replyCount?: number; 54 54 likeCount?: number; 55 55 indexedAt: string; 56 - viewer?: ViewerStateBasic; 56 + viewer?: ReplyViewerState; 57 57 labels?: (ComAtprotoLabelDefs.Label)[]; 58 58 } 59 59 ··· 68 68 } 69 69 70 70 /** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */ 71 - export interface ViewerStateBasic { 72 - $type?: "so.sprk.feed.defs#viewerStateBasic"; 71 + export interface ReplyViewerState { 72 + $type?: "so.sprk.feed.defs#replyViewerState"; 73 73 like?: string; 74 74 threadMuted?: boolean; 75 75 replyDisabled?: boolean; 76 76 embeddingDisabled?: boolean; 77 77 } 78 78 79 - const hashViewerStateBasic = "viewerStateBasic"; 79 + const hashReplyViewerState = "replyViewerState"; 80 80 81 - export function isViewerStateBasic<V>(v: V) { 82 - return is$typed(v, id, hashViewerStateBasic); 81 + export function isReplyViewerState<V>(v: V) { 82 + return is$typed(v, id, hashReplyViewerState); 83 83 } 84 84 85 - export function validateViewerStateBasic<V>(v: V) { 86 - return validate<ViewerStateBasic & V>(v, id, hashViewerStateBasic); 85 + export function validateReplyViewerState<V>(v: V) { 86 + return validate<ReplyViewerState & V>(v, id, hashReplyViewerState); 87 87 } 88 88 89 89 /** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
+2 -2
lexicons/so/sprk/feed/defs.json
··· 48 48 "replyCount": { "type": "integer" }, 49 49 "likeCount": { "type": "integer" }, 50 50 "indexedAt": { "type": "string", "format": "datetime" }, 51 - "viewer": { "type": "ref", "ref": "#viewerStateBasic" }, 51 + "viewer": { "type": "ref", "ref": "#replyViewerState" }, 52 52 "labels": { 53 53 "type": "array", 54 54 "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } 55 55 } 56 56 } 57 57 }, 58 - "viewerStateBasic": { 58 + "replyViewerState": { 59 59 "type": "object", 60 60 "description": "Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.", 61 61 "properties": {