mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
Fix my:faves, my:upvotes, my:downvotes in complex filters (#193)
This commit is contained in:
parent
0c865b3f2a
commit
9af22bbde4
1 changed files with 3 additions and 3 deletions
|
@ -407,15 +407,15 @@ SearchTerm.prototype.match = function(target) {
|
||||||
// Should work with most my:conditions except watched.
|
// Should work with most my:conditions except watched.
|
||||||
switch (this.termSpace) {
|
switch (this.termSpace) {
|
||||||
case 'faves':
|
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;
|
break;
|
||||||
case 'upvotes':
|
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;
|
break;
|
||||||
case 'downvotes':
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue