From 99b91947133fd3b0e3777c55262aa633979a74be Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Sun, 29 Jan 2023 23:34:51 +0800
Subject: [PATCH] Fix wrong status link when it's a boost in Timeline

---
 src/components/timeline.jsx | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx
index 8bfa3853..5bf52dea 100644
--- a/src/components/timeline.jsx
+++ b/src/components/timeline.jsx
@@ -91,13 +91,17 @@ function Timeline({ title, id, emptyText, errorText, fetchItems = () => {} }) {
         {!!items.length ? (
           <>
             <ul class="timeline">
-              {items.map((status) => (
-                <li key={`timeline-${status.id}`}>
-                  <Link class="status-link" to={`/s/${status.id}`}>
-                    <Status status={status} />
-                  </Link>
-                </li>
-              ))}
+              {items.map((status) => {
+                const { id: statusID, reblog } = status;
+                const actualStatusID = reblog?.id || statusID;
+                return (
+                  <li key={`timeline-${statusID}`}>
+                    <Link class="status-link" to={`/s/${actualStatusID}`}>
+                      <Status status={status} />
+                    </Link>
+                  </li>
+                );
+              })}
             </ul>
             {showMore && (
               <button