aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/search/index.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-15 18:38:27 +0800
committercrupest <crupest@outlook.com>2021-06-15 18:38:27 +0800
commit2e9fd68958502e8865408cd5c33662b4b5bf4d27 (patch)
treebe809b2d736747d4d0712c6d93795b0c2913c904 /FrontEnd/src/views/search/index.tsx
parentbf9b145ad9731901d67ff3d16783980a8310a493 (diff)
downloadtimeline-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.tsx2
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}`;