diff --git a/src/app/components/stream/thread/thread.component.ts b/src/app/components/stream/thread/thread.component.ts index 7a6a98bc..7429e7ff 100644 --- a/src/app/components/stream/thread/thread.component.ts +++ b/src/app/components/stream/thread/thread.component.ts @@ -167,8 +167,8 @@ export class ThreadComponent extends BrowseBase { return this.mastodonService.search(currentAccount, status.uri, version, true); }) .then((result: Results) => { - if (result.statuses.length === 1) { - const retrievedStatus = result.statuses[0]; + const retrievedStatus = result.statuses.find(({ uri }) => uri === status.uri); + if (retrievedStatus) { return retrievedStatus; } throw new Error('could not find status');