Skip to content

Commit

Permalink
fix: call normalize authors on the correct field (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
vandie committed Jul 22, 2022
1 parent 4fe6fe9 commit 0284a34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/classes/web-mention-handler.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0284a34

Please sign in to comment.