Skip to content

Interface: PostView

Defined in: src/types/index.ts:115

Extends

  • output<typeof schemas.PostView>

Properties

PropertyTypeDefault valueDescriptionInherited fromDefined in
banned_from_communitybooleanundefined-z.infer.banned_from_communitysrc/schemas/PostView.ts:12
communityobjectCommunity-z.infer.communitysrc/schemas/PostView.ts:13
community.ap_idstringundefinedThe federated activity id / ap_id.-src/schemas/Community.ts:9
community.banner?stringundefined--src/schemas/Community.ts:10
community.commentsnumberundefined--src/schemas/Community.ts:11
community.deletedbooleanundefined--src/schemas/Community.ts:12
community.icon?stringundefined--src/schemas/Community.ts:13
community.idnumberundefined--src/schemas/Community.ts:14
community.localbooleanundefined--src/schemas/Community.ts:15
community.namestringundefined--src/schemas/Community.ts:16
community.nsfwbooleanundefined--src/schemas/Community.ts:17
community.posting_restricted_to_modsbooleanundefined--src/schemas/Community.ts:18
community.postsnumberundefined--src/schemas/Community.ts:19
community.published_atstringundefined--src/schemas/Community.ts:20
community.removedbooleanundefined--src/schemas/Community.ts:21
community.sidebar?stringundefinedLong-form sidebar markdown (replaced v0's description).-src/schemas/Community.ts:25
community.subscribersnumberundefined--src/schemas/Community.ts:26
community.subscribers_localnumberundefined--src/schemas/Community.ts:27
community.summary?stringundefinedShort one-line summary.-src/schemas/Community.ts:31
community.titlestringundefined--src/schemas/Community.ts:32
community.updated_at?stringundefined--src/schemas/Community.ts:33
community.users_active_daynumberundefined--src/schemas/Community.ts:34
community.users_active_half_yearnumberundefined--src/schemas/Community.ts:35
community.users_active_monthnumberundefined--src/schemas/Community.ts:36
community.users_active_weeknumberundefined--src/schemas/Community.ts:37
community.visibility| "public" | "unlisted" | "local_only_public" | "local_only_private" | "private"CommunityVisibility--src/schemas/Community.ts:38
creatorobjectPerson-z.infer.creatorsrc/schemas/PostView.ts:14
creator.ap_idstringundefinedThe federated activity id / ap_id.-src/schemas/Person.ts:7
creator.avatar?stringundefined--src/schemas/Person.ts:8
creator.banner?stringundefined--src/schemas/Person.ts:9
creator.bio?stringundefined--src/schemas/Person.ts:10
creator.bot_accountbooleanundefined--src/schemas/Person.ts:11
creator.comment_countnumberundefined--src/schemas/Person.ts:12
creator.deletedbooleanundefined--src/schemas/Person.ts:13
creator.display_name?stringundefined--src/schemas/Person.ts:14
creator.idnumberundefined--src/schemas/Person.ts:15
creator.localbooleanundefined--src/schemas/Person.ts:16
creator.namestringundefined--src/schemas/Person.ts:17
creator.post_countnumberundefined--src/schemas/Person.ts:18
creator.published_atstringundefined--src/schemas/Person.ts:19
creator_banned_from_communitybooleanundefined-z.infer.creator_banned_from_communitysrc/schemas/PostView.ts:15
creator_blockedbooleanundefined-z.infer.creator_blockedsrc/schemas/PostView.ts:16
creator_is_adminbooleanundefined-z.infer.creator_is_adminsrc/schemas/PostView.ts:17
creator_is_moderatorbooleanundefined-z.infer.creator_is_moderatorsrc/schemas/PostView.ts:18
hiddenbooleanundefined-z.infer.hiddensrc/schemas/PostView.ts:19
my_vote?numberundefined-z.infer.my_votesrc/schemas/PostView.ts:20
notifications"replies_and_mentions" | "mute" | "all_comments"PostNotificationsMode-z.infer.notificationssrc/schemas/PostView.ts:21
postobjectPost-z.infer.postsrc/schemas/PostView.ts:22
post.alt_text?stringundefinedAn optional alt_text, usable for image posts.-src/schemas/Post.ts:7
post.ap_idstringundefinedThe federated activity id / ap_id.-src/schemas/Post.ts:11
post.body?stringundefinedAn optional post body, in markdown.-src/schemas/Post.ts:15
post.commentsnumberundefined--src/schemas/Post.ts:16
post.community_idnumberundefined--src/schemas/Post.ts:17
post.creator_idnumberundefined--src/schemas/Post.ts:18
post.deletedbooleanundefinedWhether the post is deleted.-src/schemas/Post.ts:22
post.downvotesnumberundefined--src/schemas/Post.ts:23
post.embed_description?stringundefinedA description for the link.-src/schemas/Post.ts:27
post.embed_title?stringundefinedA title for the link.-src/schemas/Post.ts:31
post.featured_communitybooleanundefinedWhether the post is featured to its community.-src/schemas/Post.ts:35
post.featured_localbooleanundefinedWhether the post is featured to its site.-src/schemas/Post.ts:39
post.idnumberundefined--src/schemas/Post.ts:40
post.language_idnumberundefined--src/schemas/Post.ts:41
post.localbooleanundefinedWhether the post is local.-src/schemas/Post.ts:45
post.lockedbooleanundefinedWhether the post is locked.-src/schemas/Post.ts:49
post.namestringundefined--src/schemas/Post.ts:50
post.newest_comment_time_at?stringundefinedThe time of the newest comment in the post.-src/schemas/Post.ts:54
post.nsfwbooleanundefinedWhether the post is NSFW.-src/schemas/Post.ts:58
post.published_atstringundefined--src/schemas/Post.ts:59
post.removedbooleanundefinedWhether the post is removed.-src/schemas/Post.ts:63
post.scorenumberundefined--src/schemas/Post.ts:64
post.thumbnail_url?stringundefinedA thumbnail picture url.-src/schemas/Post.ts:68
post.updated_at?stringundefined--src/schemas/Post.ts:69
post.upvotesnumberundefined--src/schemas/Post.ts:70
post.url?stringundefinedAn optional link / url for the post.-src/schemas/Post.ts:74
post.url_content_type?stringundefined--src/schemas/Post.ts:75
readbooleanundefined-z.infer.readsrc/schemas/PostView.ts:23
read_comments_at?stringundefinedWhen the current user last read the comments on this post (ISO 8601). Comments published after this can be treated as unread. Only provided by providers that track it (Lemmy v1); undefined otherwise.z.infer.read_comments_atsrc/schemas/PostView.ts:29
savedbooleanundefined-z.infer.savedsrc/schemas/PostView.ts:30
subscribed"Subscribed" | "NotSubscribed" | "Pending" | "ApprovalRequired"SubscribedType-z.infer.subscribedsrc/schemas/PostView.ts:31
tagsobject[]undefined-z.infer.tagssrc/schemas/PostView.ts:32
unread_commentsnumberundefined-z.infer.unread_commentssrc/schemas/PostView.ts:33