Merge branch 'fix-find-event' into 'main'
fix: find event and not pubkey in renderReblog See merge request soapbox-pub/ditto!146
This commit is contained in:
commit
2169f8f26a
|
@ -103,7 +103,7 @@ async function renderStatus(event: DittoEvent, viewerPubkey?: string) {
|
||||||
async function renderReblog(event: DittoEvent) {
|
async function renderReblog(event: DittoEvent) {
|
||||||
if (!event.author) return;
|
if (!event.author) return;
|
||||||
|
|
||||||
const repostId = event.tags.find(([name]) => name === 'p')?.[1];
|
const repostId = event.tags.find(([name]) => name === 'e')?.[1];
|
||||||
if (!repostId) return;
|
if (!repostId) return;
|
||||||
|
|
||||||
event.repost = await getEvent(repostId, { kind: 1 });
|
event.repost = await getEvent(repostId, { kind: 1 });
|
||||||
|
|
Loading…
Reference in New Issue