diff options
author | crupest <crupest@outlook.com> | 2022-04-12 15:18:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-12 15:18:47 +0800 |
commit | 175223fc3be512db4a939584c989d7e5d7b6832e (patch) | |
tree | 0b07536ba2815bd43da0f14d055dce1a4d8fcedd /FrontEnd/src/views | |
parent | ca1df3734b825cd0ee5bb1964a544371fb49e7a5 (diff) | |
download | timeline-175223fc3be512db4a939584c989d7e5d7b6832e.tar.gz timeline-175223fc3be512db4a939584c989d7e5d7b6832e.tar.bz2 timeline-175223fc3be512db4a939584c989d7e5d7b6832e.zip |
...
Diffstat (limited to 'FrontEnd/src/views')
-rw-r--r-- | FrontEnd/src/views/timeline/Timeline.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FrontEnd/src/views/timeline/Timeline.tsx b/FrontEnd/src/views/timeline/Timeline.tsx index a2047651..7fb58e0c 100644 --- a/FrontEnd/src/views/timeline/Timeline.tsx +++ b/FrontEnd/src/views/timeline/Timeline.tsx @@ -89,7 +89,11 @@ const Timeline: React.FC<TimelineProps> = (props) => { ([t, p]) => { if (subscribe) { setTimeline(t); - setPosts(p.items); + setPosts( + p.items.filter( + (p): p is HttpTimelinePostInfo => p.deleted === false + ) + ); setState("loaded"); onTimelineLoaded.current?.(t); } |