Skip to content

Commit

Permalink
fix(plugin-wikidata): fall back to original-author
Browse files Browse the repository at this point in the history
Fix #106
  • Loading branch information
larsgw committed May 29, 2022
1 parent fc1097f commit 1af1249
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/plugin-wikidata/src/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ export function parseEntity (entity) {
delete data['chapter-number']
}

if (data['original-author'] && !data.author) {
data.author = data['original-author']
}

// END

return data
Expand Down

0 comments on commit 1af1249

Please sign in to comment.