mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01:00
Fix wrong status link when it's a boost in Timeline
This commit is contained in:
parent
cc2d4d4cc1
commit
99b9194713
1 changed files with 11 additions and 7 deletions
|
@ -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}`}>
|
||||
{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
|
||||
|
|
Loading…
Reference in a new issue