aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-01 21:32:31 +0800
committercrupest <crupest@outlook.com>2022-05-01 21:32:31 +0800
commit4869674e4ae54eacc5bb3e9573a8362c9c4b7d3a (patch)
treed47e37a7b500125aa443a8efff958401ed3f1178 /FrontEnd
parent3f07b047df4d66f83047a5bb747c0a1665bceb6c (diff)
downloadtimeline-4869674e4ae54eacc5bb3e9573a8362c9c4b7d3a.tar.gz
timeline-4869674e4ae54eacc5bb3e9573a8362c9c4b7d3a.tar.bz2
timeline-4869674e4ae54eacc5bb3e9573a8362c9c4b7d3a.zip
...
Diffstat (limited to 'FrontEnd')
-rw-r--r--FrontEnd/src/views/search/index.tsx2
-rw-r--r--FrontEnd/src/views/timeline/Timeline.tsx4
2 files changed, 2 insertions, 4 deletions
diff --git a/FrontEnd/src/views/search/index.tsx b/FrontEnd/src/views/search/index.tsx
index e1d3222d..ee448e77 100644
--- a/FrontEnd/src/views/search/index.tsx
+++ b/FrontEnd/src/views/search/index.tsx
@@ -19,7 +19,7 @@ const TimelineSearchResultItemView: React.FC<{
<div className="timeline-search-result-item my-2 p-3">
<h4>
<Link
- to={`${timeline.owner.username}/${timeline.nameV2}`}
+ to={`/${timeline.owner.username}/${timeline.nameV2}`}
className="mb-2 text-primary"
>
{timeline.title}
diff --git a/FrontEnd/src/views/timeline/Timeline.tsx b/FrontEnd/src/views/timeline/Timeline.tsx
index 84624313..8b438d62 100644
--- a/FrontEnd/src/views/timeline/Timeline.tsx
+++ b/FrontEnd/src/views/timeline/Timeline.tsx
@@ -196,9 +196,7 @@ const Timeline: React.FC<TimelineProps> = (props) => {
<TimelinePostEdit timeline={timeline} onPosted={updatePosts} />
) : user == null ? (
<TimelinePostEditNoLogin />
- ) : (
- <TimelineEmptyItem startSegmentLength={20} center="none" current />
- )}
+ ) : null}
<TimelinePostListView posts={posts} onReload={updatePosts} />
</div>
)}