mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'fix-nip05-notification' into 'main'
Fix name grant notification not being rendered See merge request soapbox-pub/ditto!728
This commit is contained in:
commit
1be065ea58
1 changed files with 3 additions and 3 deletions
|
|
@ -98,14 +98,14 @@ async function renderReaction(store: NStore, event: DittoEvent, opts: RenderNoti
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async function renderNameGrant(event: DittoEvent) {
|
function renderNameGrant(event: DittoEvent) {
|
||||||
const r = event.tags.find(([name]) => name === 'r')?.[1];
|
const r = event.tags.find(([name]) => name === 'r')?.[1];
|
||||||
const d = event.tags.find(([name]) => name === 'd')?.[1];
|
const d = event.tags.find(([name]) => name === 'd')?.[1];
|
||||||
const name = r ?? d;
|
const name = r ?? d;
|
||||||
|
|
||||||
if (name) return;
|
if (!name) return;
|
||||||
|
|
||||||
const account = event.author ? await renderAccount(event.author) : await accountFromPubkey(event.pubkey);
|
const account = event.author ? renderAccount(event.author) : accountFromPubkey(event.pubkey);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: notificationId(event),
|
id: notificationId(event),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue