Skip to content

Commit

Permalink
Thing isNSFW: Add support for commentsLinklist
Browse files Browse the repository at this point in the history
  • Loading branch information
larsjohnsen committed May 27, 2019
1 parent 9a890d3 commit 093405a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/utils/Thing.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,7 @@ export class Thing {
}

isNSFW(): boolean {
if (this.element.classList.contains('search-result')) {
return !!this.entry.querySelector('.nsfw-stamp');
}
return this.element.classList.contains('over18');
return this.element.classList.contains('over18') || !!this.entry.querySelector('.nsfw-stamp');
}

isSpoiler(): boolean {
Expand Down

0 comments on commit 093405a

Please sign in to comment.