diff options
author | crupest <crupest@outlook.com> | 2021-06-15 18:38:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-15 18:38:27 +0800 |
commit | 2e9fd68958502e8865408cd5c33662b4b5bf4d27 (patch) | |
tree | be809b2d736747d4d0712c6d93795b0c2913c904 /FrontEnd/src/views/search/index.tsx | |
parent | bf9b145ad9731901d67ff3d16783980a8310a493 (diff) | |
download | timeline-2e9fd68958502e8865408cd5c33662b4b5bf4d27.tar.gz timeline-2e9fd68958502e8865408cd5c33662b4b5bf4d27.tar.bz2 timeline-2e9fd68958502e8865408cd5c33662b4b5bf4d27.zip |
...
Diffstat (limited to 'FrontEnd/src/views/search/index.tsx')
-rw-r--r-- | FrontEnd/src/views/search/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FrontEnd/src/views/search/index.tsx b/FrontEnd/src/views/search/index.tsx index f5018c3e..da22fa6f 100644 --- a/FrontEnd/src/views/search/index.tsx +++ b/FrontEnd/src/views/search/index.tsx @@ -16,7 +16,7 @@ import "./index.css"; const TimelineSearchResultItemView: React.FC<{ timeline: HttpTimelineInfo; }> = ({ timeline }) => { - const link = timeline.name.startsWith("src") + const link = timeline.name.startsWith("@") ? `users/${timeline.owner.username}` : `timelines/${timeline.name}`; |