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

rm pinned

-60
-26
lex/lexicons.ts
··· 17407 17407 "embeddingDisabled": { 17408 17408 "type": "boolean", 17409 17409 }, 17410 - "pinned": { 17411 - "type": "boolean", 17412 - }, 17413 17410 "knownInteractions": { 17414 17411 "type": "array", 17415 17412 "items": { ··· 17746 17743 "type": "string", 17747 17744 "format": "at-uri", 17748 17745 }, 17749 - "reason": { 17750 - "type": "union", 17751 - "refs": [ 17752 - "lex:so.sprk.feed.defs#skeletonReasonRepost", 17753 - "lex:so.sprk.feed.defs#skeletonReasonPin", 17754 - ], 17755 - }, 17756 17746 "feedContext": { 17757 17747 "type": "string", 17758 17748 "description": ··· 17760 17750 "maxLength": 2000, 17761 17751 }, 17762 17752 }, 17763 - }, 17764 - "skeletonReasonRepost": { 17765 - "type": "object", 17766 - "required": [ 17767 - "repost", 17768 - ], 17769 - "properties": { 17770 - "repost": { 17771 - "type": "string", 17772 - "format": "at-uri", 17773 - }, 17774 - }, 17775 - }, 17776 - "skeletonReasonPin": { 17777 - "type": "object", 17778 - "properties": {}, 17779 17753 }, 17780 17754 "threadgateView": { 17781 17755 "type": "object",
-33
lex/types/so/sprk/feed/defs.ts
··· 94 94 threadMuted?: boolean; 95 95 replyDisabled?: boolean; 96 96 embeddingDisabled?: boolean; 97 - pinned?: boolean; 98 97 knownInteractions?: 99 98 ($Typed<KnownRepost> | $Typed<KnownLike> | $Typed<KnownReply> | { 100 99 $type: string; ··· 342 341 export interface SkeletonFeedPost { 343 342 $type?: "so.sprk.feed.defs#skeletonFeedPost"; 344 343 post: string; 345 - reason?: $Typed<SkeletonReasonRepost> | $Typed<SkeletonReasonPin> | { 346 - $type: string; 347 - }; 348 344 /** Context that will be passed through to client and may be passed to feed generator back alongside interactions. */ 349 345 feedContext?: string; 350 346 } ··· 357 353 358 354 export function validateSkeletonFeedPost<V>(v: V) { 359 355 return validate<SkeletonFeedPost & V>(v, id, hashSkeletonFeedPost); 360 - } 361 - 362 - export interface SkeletonReasonRepost { 363 - $type?: "so.sprk.feed.defs#skeletonReasonRepost"; 364 - repost: string; 365 - } 366 - 367 - const hashSkeletonReasonRepost = "skeletonReasonRepost"; 368 - 369 - export function isSkeletonReasonRepost<V>(v: V) { 370 - return is$typed(v, id, hashSkeletonReasonRepost); 371 - } 372 - 373 - export function validateSkeletonReasonRepost<V>(v: V) { 374 - return validate<SkeletonReasonRepost & V>(v, id, hashSkeletonReasonRepost); 375 - } 376 - 377 - export interface SkeletonReasonPin { 378 - $type?: "so.sprk.feed.defs#skeletonReasonPin"; 379 - } 380 - 381 - const hashSkeletonReasonPin = "skeletonReasonPin"; 382 - 383 - export function isSkeletonReasonPin<V>(v: V) { 384 - return is$typed(v, id, hashSkeletonReasonPin); 385 - } 386 - 387 - export function validateSkeletonReasonPin<V>(v: V) { 388 - return validate<SkeletonReasonPin & V>(v, id, hashSkeletonReasonPin); 389 356 } 390 357 391 358 export interface ThreadgateView {
-1
lexicons/so/sprk/feed/defs.json
··· 74 74 "threadMuted": { "type": "boolean" }, 75 75 "replyDisabled": { "type": "boolean" }, 76 76 "embeddingDisabled": { "type": "boolean" }, 77 - "pinned": { "type": "boolean" }, 78 77 "knownInteractions": { 79 78 "type": "array", 80 79 "items": {