Skip to content

Interface: CommentView

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

Extends

  • output<typeof schemas.CommentView>

Properties

PropertyTypeDefault valueDescriptionInherited fromDefined in
banned_from_communitybooleanundefined-z.infer.banned_from_communitysrc/schemas/CommentView.ts:11
commentobjectComment-z.infer.commentsrc/schemas/CommentView.ts:12
comment.ap_idstringundefinedThe federated activity id / ap_id.-src/schemas/Comment.ts:7
comment.child_countnumberundefinedThe total number of children in this comment branch.-src/schemas/Comment.ts:11
comment.contentstringundefined--src/schemas/Comment.ts:12
comment.creator_idnumberundefined--src/schemas/Comment.ts:13
comment.deletedbooleanundefinedWhether the comment has been deleted by its creator.-src/schemas/Comment.ts:17
comment.distinguishedbooleanundefinedWhether the comment has been distinguished (speaking officially) by a mod.-src/schemas/Comment.ts:21
comment.downvotesnumberundefined--src/schemas/Comment.ts:22
comment.idnumberundefined--src/schemas/Comment.ts:23
comment.language_idnumberundefined--src/schemas/Comment.ts:24
comment.localbooleanundefinedWhether the comment is local.-src/schemas/Comment.ts:28
comment.pathstringundefinedThe path / tree location of a comment, separated by dots, ending with the comment's id. Ex: 0.24.27-src/schemas/Comment.ts:33
comment.post_idnumberundefined--src/schemas/Comment.ts:34
comment.published_atstringundefined--src/schemas/Comment.ts:35
comment.removedbooleanundefinedWhether the comment has been removed.-src/schemas/Comment.ts:39
comment.scorenumberundefined--src/schemas/Comment.ts:40
comment.updated_at?stringundefined--src/schemas/Comment.ts:41
comment.upvotesnumberundefined--src/schemas/Comment.ts:42
communityobjectCommunity-z.infer.communitysrc/schemas/CommentView.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/CommentView.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/CommentView.ts:15
creator_is_adminbooleanundefined-z.infer.creator_is_adminsrc/schemas/CommentView.ts:16
creator_is_moderatorbooleanundefined-z.infer.creator_is_moderatorsrc/schemas/CommentView.ts:17
my_vote?numberundefined-z.infer.my_votesrc/schemas/CommentView.ts:18
postobjectPost-z.infer.postsrc/schemas/CommentView.ts:19
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
savedbooleanundefined-z.infer.savedsrc/schemas/CommentView.ts:20
subscribed"Subscribed" | "NotSubscribed" | "Pending" | "ApprovalRequired"SubscribedType-z.infer.subscribedsrc/schemas/CommentView.ts:21