From 9af22bbde42ffee84743d2a20d07545ffeeea95c Mon Sep 17 00:00:00 2001 From: mdashlw Date: Sat, 7 Oct 2023 23:07:27 +0800 Subject: [PATCH] Fix my:faves, my:upvotes, my:downvotes in complex filters (#193) --- assets/js/match_query.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/match_query.js b/assets/js/match_query.js index a76d68e4..6fd0733f 100644 --- a/assets/js/match_query.js +++ b/assets/js/match_query.js @@ -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: