From 0284a34dfd2f8f44cd416a0c1870543849269925 Mon Sep 17 00:00:00 2001 From: Michael Van Der Velden Date: Fri, 22 Jul 2022 21:52:39 +0100 Subject: [PATCH] fix: call normalize authors on the correct field (#8) --- package.json | 2 +- src/classes/web-mention-handler.class.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2d7bee0..51b60a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webmention-handler", - "version": "0.0.7", + "version": "0.0.8", "description": "A handler for web mentions", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/classes/web-mention-handler.class.ts b/src/classes/web-mention-handler.class.ts index 8fe28b7..de17fa2 100644 --- a/src/classes/web-mention-handler.class.ts +++ b/src/classes/web-mention-handler.class.ts @@ -102,7 +102,7 @@ export class WebMentionHandler implements IWebMentionHandler{ // seperate page, as such we should normalize it a local author if possible await Promise.all(hEntries.map(async (entry, index) => { if(!entry.author) return; - hEntries[index].author = await normalizeAuthors(entry); + hEntries[index].author = await normalizeAuthors(entry.author); })) let mentions = hEntries.map(h => convertHEntryToMention(h, mention.source, mention.target));