Skip to content

Commit

Permalink
Map 'owner' to 'author' token in Gelbooru (fix #2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed May 30, 2022
1 parent da182ed commit 60291ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sites/Gelbooru (0.2)/model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
function completeImage(img: IImage): IImage {
img.author = (img as any).owner;

if ((!img.file_url || img.file_url.length < 5) && img.preview_url) {
img.file_url = img.preview_url
.replace("/thumbnails/", "/images/")
Expand Down

0 comments on commit 60291ae

Please sign in to comment.