From d260c3c3fa073d1a9d09b94c5c4749334e26ab9a Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 10 Apr 2022 19:07:42 +0800 Subject: ... --- FrontEnd/src/views/timeline/TimelinePostContentView.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'FrontEnd/src/views/timeline/TimelinePostContentView.tsx') diff --git a/FrontEnd/src/views/timeline/TimelinePostContentView.tsx b/FrontEnd/src/views/timeline/TimelinePostContentView.tsx index 607b72c9..88cd756a 100644 --- a/FrontEnd/src/views/timeline/TimelinePostContentView.tsx +++ b/FrontEnd/src/views/timeline/TimelinePostContentView.tsx @@ -27,7 +27,7 @@ const TextView: React.FC = (props) => { setError(null); void getHttpTimelineClient() - .getPostDataAsString(post.timelineName, post.id) + .getPostDataAsString(post.timelineOwnerV2, post.timelineNameV2, post.id) .then( (data) => { if (subscribe) setText(data); @@ -46,7 +46,7 @@ const TextView: React.FC = (props) => { return () => { subscribe = false; }; - }, [post.timelineName, post.id, reloadKey]); + }, [post.timelineOwnerV2, post.timelineNameV2, post.id, reloadKey]); if (error != null) { return ( @@ -75,7 +75,8 @@ const ImageView: React.FC = (props) => { return ( = (props) => { setError(null); void getHttpTimelineClient() - .getPostDataAsString(post.timelineName, post.id) + .getPostDataAsString(post.timelineOwnerV2, post.timelineNameV2, post.id) .then( (data) => { if (subscribe) setMarkdown(data); @@ -129,7 +130,7 @@ const MarkdownView: React.FC = (props) => { return () => { subscribe = false; }; - }, [post.timelineName, post.id, reloadKey]); + }, [post.timelineOwnerV2, post.timelineNameV2, post.id, reloadKey]); const markdownHtml = React.useMemo(() => { if (markdown == null) return null; -- cgit v1.2.3