mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-08 23:14:19 +01:00
Fix in_reply_to for root
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user