Fix my:faves, my:upvotes, my:downvotes in complex filters (#193)

This commit is contained in:
mdashlw 2023-10-07 23:07:27 +08:00 committed by GitHub
parent 0c865b3f2a
commit 9af22bbde4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: