renderStatus: fix repost and reaction events being switched

This commit is contained in:
Alex Gleason 2024-01-01 18:39:22 -06:00
parent 462b5b095c
commit 792e47f0f7
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ async function renderStatus(event: DittoEvent<1>, viewerPubkey?: string) {
: [],
]);
const reactionEvent = relatedEvents.find((event) => event.kind === 6);
const repostEvent = relatedEvents.find((event) => event.kind === 7);
const reactionEvent = relatedEvents.find((event) => event.kind === 7);
const repostEvent = relatedEvents.find((event) => event.kind === 6);
const pinEvent = relatedEvents.find((event) => event.kind === 10001);
const bookmarkEvent = relatedEvents.find((event) => event.kind === 10003);