Interface: Post
Defined in: src/types/index.ts:106
Extends
output<typeofschemas.Post>
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
alt_text? | string | An optional alt_text, usable for image posts. | z.infer.alt_text | src/schemas/Post.ts:7 |
ap_id | string | The federated activity id / ap_id. | z.infer.ap_id | src/schemas/Post.ts:11 |
body? | string | An optional post body, in markdown. | z.infer.body | src/schemas/Post.ts:15 |
comments | number | - | z.infer.comments | src/schemas/Post.ts:16 |
community_id | number | - | z.infer.community_id | src/schemas/Post.ts:17 |
creator_id | number | - | z.infer.creator_id | src/schemas/Post.ts:18 |
deleted | boolean | Whether the post is deleted. | z.infer.deleted | src/schemas/Post.ts:22 |
downvotes | number | - | z.infer.downvotes | src/schemas/Post.ts:23 |
embed_description? | string | A description for the link. | z.infer.embed_description | src/schemas/Post.ts:27 |
embed_title? | string | A title for the link. | z.infer.embed_title | src/schemas/Post.ts:31 |
featured_community | boolean | Whether the post is featured to its community. | z.infer.featured_community | src/schemas/Post.ts:35 |
featured_local | boolean | Whether the post is featured to its site. | z.infer.featured_local | src/schemas/Post.ts:39 |
id | number | - | z.infer.id | src/schemas/Post.ts:40 |
language_id | number | - | z.infer.language_id | src/schemas/Post.ts:41 |
local | boolean | Whether the post is local. | z.infer.local | src/schemas/Post.ts:45 |
locked | boolean | Whether the post is locked. | z.infer.locked | src/schemas/Post.ts:49 |
name | string | - | z.infer.name | src/schemas/Post.ts:50 |
newest_comment_time_at? | string | The time of the newest comment in the post. | z.infer.newest_comment_time_at | src/schemas/Post.ts:54 |
nsfw | boolean | Whether the post is NSFW. | z.infer.nsfw | src/schemas/Post.ts:58 |
published_at | string | - | z.infer.published_at | src/schemas/Post.ts:59 |
removed | boolean | Whether the post is removed. | z.infer.removed | src/schemas/Post.ts:63 |
score | number | - | z.infer.score | src/schemas/Post.ts:64 |
thumbnail_url? | string | A thumbnail picture url. | z.infer.thumbnail_url | src/schemas/Post.ts:68 |
updated_at? | string | - | z.infer.updated_at | src/schemas/Post.ts:69 |
upvotes | number | - | z.infer.upvotes | src/schemas/Post.ts:70 |
url? | string | An optional link / url for the post. | z.infer.url | src/schemas/Post.ts:74 |
url_content_type? | string | - | z.infer.url_content_type | src/schemas/Post.ts:75 |
