mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix in_reply_to for root
This commit is contained in:
parent
586f20b23d
commit
a48ee148ae
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,8 @@ async function toStatus(event: Event<1>) {
|
||||||
const account = profile ? toAccount(profile) : undefined;
|
const account = profile ? toAccount(profile) : undefined;
|
||||||
if (!account) return;
|
if (!account) return;
|
||||||
|
|
||||||
const inReplyTo = event.tags.find((tag) => tag[0] === 'e' && (!tag[3] || tag[3] === 'reply'));
|
const inReplyTo = event.tags
|
||||||
|
.find((tag) => tag[0] === 'e' && (!tag[3] || tag[3] === 'reply' || tag[3] === 'root'));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: event.id,
|
id: event.id,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue