diff options
author | crupest <crupest@outlook.com> | 2021-06-15 15:02:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-15 15:02:49 +0800 |
commit | e0b766203d7576ab67b16ba556ba14120d0bc876 (patch) | |
tree | dfeee6d463ecf411daf0a34db0c160a71502cbd9 /FrontEnd/src/views/search/index.tsx | |
parent | 47587812b809fee2a95c76266d9d0e42fc4ac1ca (diff) | |
download | timeline-e0b766203d7576ab67b16ba556ba14120d0bc876.tar.gz timeline-e0b766203d7576ab67b16ba556ba14120d0bc876.tar.bz2 timeline-e0b766203d7576ab67b16ba556ba14120d0bc876.zip |
...
Diffstat (limited to 'FrontEnd/src/views/search/index.tsx')
-rw-r--r-- | FrontEnd/src/views/search/index.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/FrontEnd/src/views/search/index.tsx b/FrontEnd/src/views/search/index.tsx index 14a9709c..9a26802d 100644 --- a/FrontEnd/src/views/search/index.tsx +++ b/FrontEnd/src/views/search/index.tsx @@ -4,9 +4,9 @@ import { Container, Row } from "react-bootstrap"; import { useHistory, useLocation } from "react-router"; import { Link } from "react-router-dom"; -import { HttpNetworkError } from "http/common"; -import { getHttpSearchClient } from "http/search"; -import { HttpTimelineInfo } from "http/timeline"; +import { HttpNetworkError } from "@/http/common"; +import { getHttpSearchClient } from "@/http/search"; +import { HttpTimelineInfo } from "@/http/timeline"; import SearchInput from "../common/SearchInput"; import UserAvatar from "../common/user/UserAvatar"; @@ -14,7 +14,7 @@ import UserAvatar from "../common/user/UserAvatar"; const TimelineSearchResultItemView: React.FC<{ timeline: HttpTimelineInfo; }> = ({ timeline }) => { - const link = timeline.name.startsWith("@") + const link = timeline.name.startsWith("src") ? `users/${timeline.owner.username}` : `timelines/${timeline.name}`; @@ -33,7 +33,7 @@ const TimelineSearchResultItemView: React.FC<{ /> {timeline.owner.nickname} <small className="ms-3 text-secondary"> - @{timeline.owner.username} + src{timeline.owner.username} </small> </div> </div> |