Feature/twitter refresh (#160)

* receive and process broadcasted tweets to the clients

* removing profile fetch and cleaning up unused functions

* defend against null profile

* move defenseive check to top pof notifications

* fix bug where delete was visible for non owners

* remove polling implementation
This commit is contained in:
Erik authored and GitHub committed 2021-03-20 18:17:14 -04:00
1 parent 2a4457b323
commit a52ffc4e79
4 files changed
+50 -25

No files matched your search

+9
View File
@@ -11,6 +11,7 @@ export interface Tweet extends NewTweet {
profile_name: string;
profile_id: number;
id: number;
identifier: string;
isMine: boolean;
isLiked: boolean;
isReported: boolean;
@@ -26,6 +27,14 @@ export interface Tweet extends NewTweet {
updatedAt: string;
}
export interface Image {
id: string;
link: string;
}
export interface FormattedTweet extends Omit<Tweet, 'images'> {
images: Image[];
}
export interface Profile {
id: number;
profile_name: string;