mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix hydrating mentions
This commit is contained in:
parent
b8c67a85d0
commit
e7027af1ae
1 changed files with 4 additions and 3 deletions
|
|
@ -280,9 +280,10 @@ async function gatherMentions({ events, store, signal }: HydrateOpts): Promise<D
|
||||||
|
|
||||||
for (const event of events) {
|
for (const event of events) {
|
||||||
if (event.kind === 1) {
|
if (event.kind === 1) {
|
||||||
const pubkey = event.tags.find(([name]) => name === 'p')?.[1];
|
for (const [name, value] of event.tags) {
|
||||||
if (pubkey) {
|
if (name === 'p') {
|
||||||
pubkeys.add(pubkey);
|
pubkeys.add(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue