Fix in_reply_to for legacy clients

This commit is contained in:
Alex Gleason
2023-04-29 18:02:24 -05:00
parent acabc7c4ad
commit 4962f31296

View File

@@ -54,7 +54,7 @@ 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] === 'reply');
const inReplyTo = event.tags.find((tag) => tag[0] === 'e' && (!tag[3] || tag[3] === 'reply'));
return {
id: event.id,