mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
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:
4 files changed
+50
-25
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user