unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at development 51 lines 1.4 kB view raw
1import { Ask } from "./ask"; 2import { Emoji } from "./emoji"; 3import { InteractionControlType } from "./InteractionControl"; 4import { QuestionPoll } from "./questionPoll"; 5import { RawPost } from "./raw-post"; 6import { SimplifiedUser } from "./simplified-user"; 7import { Tag } from "./tag"; 8import { PostEmojiReaction } from "./unlinked-posts"; 9import { WafrnMedia } from "./wafrn-media"; 10 11export interface ProcessedPost { 12 id: string; 13 content_warning: string; 14 muted_words_cw?: string; 15 content: string; 16 title?: string; 17 createdAt: Date; 18 updatedAt: Date; 19 userId: string; 20 user: SimplifiedUser; 21 medias: WafrnMedia[]; 22 tags: Tag[]; 23 mentionPost?: SimplifiedUser[]; 24 notes: number; 25 privacy: number; 26 remotePostId: string; 27 userLikesPostRelations: string[]; 28 emojis: Emoji[]; 29 descendents: RawPost[]; 30 questionPoll?: QuestionPoll; 31 emojiReactions: PostEmojiReaction[]; 32 quotes: ProcessedPost[]; 33 parentCollection: ProcessedPost[]; 34 parentId?: string; 35 ask?: Ask; 36 markdownContent: string; 37 bskyUri?: string; 38 isRewoot: boolean; 39 hierarchyLevel: number; 40 bookmarkers: string[]; 41 canReply: boolean; 42 featured: boolean; 43 canQuote: boolean; 44 canLike: boolean; 45 canReblog: boolean; 46 displayUrl?: string; 47 replyControl: InteractionControlType; 48 reblogControl: InteractionControlType; 49 quoteControl: InteractionControlType; 50 likeControl: InteractionControlType; 51}