Fix in_reply_to for root

This commit is contained in:
Alex Gleason 2023-04-29 19:01:24 -05:00
parent 586f20b23d
commit a48ee148ae
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ async function toStatus(event: Event<1>) {
const account = profile ? toAccount(profile) : undefined;
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 {
id: event.id,