Interface: PostView
Defined in: src/types/index.ts:115
Extends
output<typeofschemas.PostView>
Properties
| Property | Type | Default value | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
banned_from_community | boolean | undefined | - | z.infer.banned_from_community | src/schemas/PostView.ts:12 |
community | object | Community | - | z.infer.community | src/schemas/PostView.ts:13 |
community.ap_id | string | undefined | The federated activity id / ap_id. | - | src/schemas/Community.ts:9 |
community.banner? | string | undefined | - | - | src/schemas/Community.ts:10 |
community.comments | number | undefined | - | - | src/schemas/Community.ts:11 |
community.deleted | boolean | undefined | - | - | src/schemas/Community.ts:12 |
community.icon? | string | undefined | - | - | src/schemas/Community.ts:13 |
community.id | number | undefined | - | - | src/schemas/Community.ts:14 |
community.local | boolean | undefined | - | - | src/schemas/Community.ts:15 |
community.name | string | undefined | - | - | src/schemas/Community.ts:16 |
community.nsfw | boolean | undefined | - | - | src/schemas/Community.ts:17 |
community.posting_restricted_to_mods | boolean | undefined | - | - | src/schemas/Community.ts:18 |
community.posts | number | undefined | - | - | src/schemas/Community.ts:19 |
community.published_at | string | undefined | - | - | src/schemas/Community.ts:20 |
community.removed | boolean | undefined | - | - | src/schemas/Community.ts:21 |
community.sidebar? | string | undefined | Long-form sidebar markdown (replaced v0's description). | - | src/schemas/Community.ts:25 |
community.subscribers | number | undefined | - | - | src/schemas/Community.ts:26 |
community.subscribers_local | number | undefined | - | - | src/schemas/Community.ts:27 |
community.summary? | string | undefined | Short one-line summary. | - | src/schemas/Community.ts:31 |
community.title | string | undefined | - | - | src/schemas/Community.ts:32 |
community.updated_at? | string | undefined | - | - | src/schemas/Community.ts:33 |
community.users_active_day | number | undefined | - | - | src/schemas/Community.ts:34 |
community.users_active_half_year | number | undefined | - | - | src/schemas/Community.ts:35 |
community.users_active_month | number | undefined | - | - | src/schemas/Community.ts:36 |
community.users_active_week | number | undefined | - | - | src/schemas/Community.ts:37 |
community.visibility | | "public" | "unlisted" | "local_only_public" | "local_only_private" | "private" | CommunityVisibility | - | - | src/schemas/Community.ts:38 |
creator | object | Person | - | z.infer.creator | src/schemas/PostView.ts:14 |
creator.ap_id | string | undefined | The federated activity id / ap_id. | - | src/schemas/Person.ts:7 |
creator.avatar? | string | undefined | - | - | src/schemas/Person.ts:8 |
creator.banner? | string | undefined | - | - | src/schemas/Person.ts:9 |
creator.bio? | string | undefined | - | - | src/schemas/Person.ts:10 |
creator.bot_account | boolean | undefined | - | - | src/schemas/Person.ts:11 |
creator.comment_count | number | undefined | - | - | src/schemas/Person.ts:12 |
creator.deleted | boolean | undefined | - | - | src/schemas/Person.ts:13 |
creator.display_name? | string | undefined | - | - | src/schemas/Person.ts:14 |
creator.id | number | undefined | - | - | src/schemas/Person.ts:15 |
creator.local | boolean | undefined | - | - | src/schemas/Person.ts:16 |
creator.name | string | undefined | - | - | src/schemas/Person.ts:17 |
creator.post_count | number | undefined | - | - | src/schemas/Person.ts:18 |
creator.published_at | string | undefined | - | - | src/schemas/Person.ts:19 |
creator_banned_from_community | boolean | undefined | - | z.infer.creator_banned_from_community | src/schemas/PostView.ts:15 |
creator_blocked | boolean | undefined | - | z.infer.creator_blocked | src/schemas/PostView.ts:16 |
creator_is_admin | boolean | undefined | - | z.infer.creator_is_admin | src/schemas/PostView.ts:17 |
creator_is_moderator | boolean | undefined | - | z.infer.creator_is_moderator | src/schemas/PostView.ts:18 |
hidden | boolean | undefined | - | z.infer.hidden | src/schemas/PostView.ts:19 |
my_vote? | number | undefined | - | z.infer.my_vote | src/schemas/PostView.ts:20 |
notifications | "replies_and_mentions" | "mute" | "all_comments" | PostNotificationsMode | - | z.infer.notifications | src/schemas/PostView.ts:21 |
post | object | Post | - | z.infer.post | src/schemas/PostView.ts:22 |
post.alt_text? | string | undefined | An optional alt_text, usable for image posts. | - | src/schemas/Post.ts:7 |
post.ap_id | string | undefined | The federated activity id / ap_id. | - | src/schemas/Post.ts:11 |
post.body? | string | undefined | An optional post body, in markdown. | - | src/schemas/Post.ts:15 |
post.comments | number | undefined | - | - | src/schemas/Post.ts:16 |
post.community_id | number | undefined | - | - | src/schemas/Post.ts:17 |
post.creator_id | number | undefined | - | - | src/schemas/Post.ts:18 |
post.deleted | boolean | undefined | Whether the post is deleted. | - | src/schemas/Post.ts:22 |
post.downvotes | number | undefined | - | - | src/schemas/Post.ts:23 |
post.embed_description? | string | undefined | A description for the link. | - | src/schemas/Post.ts:27 |
post.embed_title? | string | undefined | A title for the link. | - | src/schemas/Post.ts:31 |
post.featured_community | boolean | undefined | Whether the post is featured to its community. | - | src/schemas/Post.ts:35 |
post.featured_local | boolean | undefined | Whether the post is featured to its site. | - | src/schemas/Post.ts:39 |
post.id | number | undefined | - | - | src/schemas/Post.ts:40 |
post.language_id | number | undefined | - | - | src/schemas/Post.ts:41 |
post.local | boolean | undefined | Whether the post is local. | - | src/schemas/Post.ts:45 |
post.locked | boolean | undefined | Whether the post is locked. | - | src/schemas/Post.ts:49 |
post.name | string | undefined | - | - | src/schemas/Post.ts:50 |
post.newest_comment_time_at? | string | undefined | The time of the newest comment in the post. | - | src/schemas/Post.ts:54 |
post.nsfw | boolean | undefined | Whether the post is NSFW. | - | src/schemas/Post.ts:58 |
post.published_at | string | undefined | - | - | src/schemas/Post.ts:59 |
post.removed | boolean | undefined | Whether the post is removed. | - | src/schemas/Post.ts:63 |
post.score | number | undefined | - | - | src/schemas/Post.ts:64 |
post.thumbnail_url? | string | undefined | A thumbnail picture url. | - | src/schemas/Post.ts:68 |
post.updated_at? | string | undefined | - | - | src/schemas/Post.ts:69 |
post.upvotes | number | undefined | - | - | src/schemas/Post.ts:70 |
post.url? | string | undefined | An optional link / url for the post. | - | src/schemas/Post.ts:74 |
post.url_content_type? | string | undefined | - | - | src/schemas/Post.ts:75 |
read | boolean | undefined | - | z.infer.read | src/schemas/PostView.ts:23 |
read_comments_at? | string | undefined | When 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_at | src/schemas/PostView.ts:29 |
saved | boolean | undefined | - | z.infer.saved | src/schemas/PostView.ts:30 |
subscribed | "Subscribed" | "NotSubscribed" | "Pending" | "ApprovalRequired" | SubscribedType | - | z.infer.subscribed | src/schemas/PostView.ts:31 |
tags | object[] | undefined | - | z.infer.tags | src/schemas/PostView.ts:32 |
unread_comments | number | undefined | - | z.infer.unread_comments | src/schemas/PostView.ts:33 |
