diff options
author | Dessalines <tyhou13@gmx.com> | 2020-04-14 15:12:19 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-04-14 15:12:19 -0400 |
commit | 26ad37a8c0450214ffe1cf4d6a3cfd3a37b3e6d9 (patch) | |
tree | 2f58aa1b0ef135a33cc5d767a7c7de72bdff824f /ui | |
parent | 5c83cbc1ac1f75b745a8fbaebb6acb0fe8bdcf1c (diff) |
Updating views to add apub actor_id and local columns.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/interfaces.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index 283e1944..b9842516 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -98,10 +98,13 @@ export interface User { export interface UserView { id: number; + actor_id: string; name: string; avatar?: string; email?: string; matrix_user_id?: string; + bio?: string; + local: boolean; published: string; number_of_posts: number; post_score: number; @@ -115,15 +118,21 @@ export interface UserView { export interface CommunityUser { id: number; user_id: number; + user_actor_id: string; + user_local: boolean; user_name: string; avatar?: string; community_id: number; + community_actor_id: string; + community_local: boolean; community_name: string; published: string; } export interface Community { id: number; + actor_id: string; + local: boolean; name: string; title: string; description?: string; @@ -134,6 +143,9 @@ export interface Community { nsfw: boolean; published: string; updated?: string; + creator_actor_id: string; + creator_local: boolean; + last_refreshed_at: string; creator_name: string; creator_avatar?: string; category_name: string; @@ -159,13 +171,19 @@ export interface Post { embed_description?: string; embed_html?: string; thumbnail_url?: string; + ap_id: string; + local: boolean; nsfw: boolean; banned: boolean; banned_from_community: boolean; published: string; updated?: string; + creator_actor_id: string; + creator_local: boolean; creator_name: string; creator_avatar?: string; + community_actor_id: string; + community_local: boolean; community_name: string; community_removed: boolean; community_deleted: boolean; @@ -186,6 +204,8 @@ export interface Post { export interface Comment { id: number; + ap_id: string; + local: boolean; creator_id: number; post_id: number; parent_id?: number; @@ -196,9 +216,13 @@ export interface Comment { published: string; updated?: string; community_id: number; + community_actor_id: string; + community_local: boolean; community_name: string; banned: boolean; banned_from_community: boolean; + creator_actor_id: string; + creator_local: boolean; creator_name: string; creator_avatar?: string; score: number; @@ -211,6 +235,8 @@ export interface Comment { saved?: boolean; user_mention_id?: number; // For mention type recipient_id?: number; + recipient_actor_id?: string; + recipient_local?: boolean; depth?: number; } |