diff options
author | crupest <crupest@outlook.com> | 2022-04-10 19:07:42 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-10 19:07:42 +0800 |
commit | d260c3c3fa073d1a9d09b94c5c4749334e26ab9a (patch) | |
tree | 2724962c74467c759e21afbd923127baa3f9eba6 /FrontEnd/src/views/timeline/TimelinePostContentView.tsx | |
parent | 928ba0ce419bacba113951095278a5138ead34cf (diff) | |
download | timeline-d260c3c3fa073d1a9d09b94c5c4749334e26ab9a.tar.gz timeline-d260c3c3fa073d1a9d09b94c5c4749334e26ab9a.tar.bz2 timeline-d260c3c3fa073d1a9d09b94c5c4749334e26ab9a.zip |
...
Diffstat (limited to 'FrontEnd/src/views/timeline/TimelinePostContentView.tsx')
-rw-r--r-- | FrontEnd/src/views/timeline/TimelinePostContentView.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
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<TimelinePostContentViewProps> = (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<TimelinePostContentViewProps> = (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<TimelinePostContentViewProps> = (props) => { return ( <img src={getHttpTimelineClient().generatePostDataUrl( - post.timelineName, + post.timelineOwnerV2, + post.timelineNameV2, post.id )} className={classnames(className, "timeline-content-image")} @@ -110,7 +111,7 @@ const MarkdownView: React.FC<TimelinePostContentViewProps> = (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<TimelinePostContentViewProps> = (props) => { return () => { subscribe = false; }; - }, [post.timelineName, post.id, reloadKey]); + }, [post.timelineOwnerV2, post.timelineNameV2, post.id, reloadKey]); const markdownHtml = React.useMemo<string | null>(() => { if (markdown == null) return null; |