Skip to content

Commit

Permalink
Fix my:faves, my:upvotes, my:downvotes in complex filters (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdashlw authored Oct 7, 2023
1 parent 0c865b3 commit 9af22bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/match_query.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,15 @@ SearchTerm.prototype.match = function(target) {
// Should work with most my:conditions except watched.
switch (this.termSpace) {
case 'faves':
ret = this.interactionMatch(target.getAttribute('data-image-id'), 'faved', null, window.booru.interactions);
ret = this.interactionMatch(Number(target.getAttribute('data-image-id')), 'faved', null, window.booru.interactions);

break;
case 'upvotes':
ret = this.interactionMatch(target.getAttribute('data-image-id'), 'voted', 'up', window.booru.interactions);
ret = this.interactionMatch(Number(target.getAttribute('data-image-id')), 'voted', 'up', window.booru.interactions);

break;
case 'downvotes':
ret = this.interactionMatch(target.getAttribute('data-image-id'), 'voted', 'down', window.booru.interactions);
ret = this.interactionMatch(Number(target.getAttribute('data-image-id')), 'voted', 'down', window.booru.interactions);

break;
default:
Expand Down

0 comments on commit 9af22bb

Please sign in to comment.