Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Merge branch 'leftypol' into leftypol-release-tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroCarrara committed Jul 4, 2021
2 parents 1b09a30 + 485ad8e commit a898dbe
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,7 @@ public HttpUrl imageUrl(Post.Builder post, Map<String, String> arg) {

@Override
public HttpUrl thumbnailUrl(Post.Builder post, boolean spoiler, Map<String, String> arg) {
String thumb = arg.get("thumb_path");

if (spoiler) {
if (post.board.customSpoilers > 0) {
return root.builder()
.s("static")
.s("spoiler_alunya.png")
.url();
}
return root.builder()
.s("static")
.s("spoiler.png")
.url();
}

return root.builder().s(thumb).url();
return root.builder().s(arg.get("thumb_path")).url();
}

@Override
Expand Down

0 comments on commit a898dbe

Please sign in to comment.