mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
unreblogStatusController: repostedEvent -> repostEvent
This commit is contained in:
parent
6d1c21dce2
commit
1d37106b27
1 changed files with 3 additions and 3 deletions
|
|
@ -296,17 +296,17 @@ const unreblogStatusController: AppController = async (c) => {
|
|||
return c.json({ error: 'Record not found' }, 404);
|
||||
}
|
||||
|
||||
const [repostedEvent] = await store.query(
|
||||
const [repostEvent] = await store.query(
|
||||
[{ kinds: [6], authors: [pubkey], '#e': [event.id], limit: 1 }],
|
||||
);
|
||||
|
||||
if (!repostedEvent) {
|
||||
if (!repostEvent) {
|
||||
return c.json({ error: 'Record not found' }, 404);
|
||||
}
|
||||
|
||||
await createEvent({
|
||||
kind: 5,
|
||||
tags: [['e', repostedEvent.id]],
|
||||
tags: [['e', repostEvent.id]],
|
||||
}, c);
|
||||
|
||||
return c.json(await renderStatus(event, { viewerPubkey: pubkey }));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue