mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 09:15:44 +01:00
This commit is contained in:
parent
06d917b4d7
commit
e86386bd8b
1 changed files with 13 additions and 1 deletions
|
@ -134,9 +134,21 @@ export default Vue.extend({
|
||||||
} else if (this.type == 'emoji') {
|
} else if (this.type == 'emoji') {
|
||||||
const matched = [];
|
const matched = [];
|
||||||
emjdb.some(x => {
|
emjdb.some(x => {
|
||||||
if (x.name.indexOf(this.q) > -1 && !matched.some(y => y.emoji == x.emoji)) matched.push(x);
|
if (x.name.indexOf(this.q) == 0 && !x.alias && !matched.some(y => y.emoji == x.emoji)) matched.push(x);
|
||||||
return matched.length == 30;
|
return matched.length == 30;
|
||||||
});
|
});
|
||||||
|
if (matched.length < 30) {
|
||||||
|
emjdb.some(x => {
|
||||||
|
if (x.name.indexOf(this.q) == 0 && !matched.some(y => y.emoji == x.emoji)) matched.push(x);
|
||||||
|
return matched.length == 30;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (matched.length < 30) {
|
||||||
|
emjdb.some(x => {
|
||||||
|
if (x.name.indexOf(this.q) > -1 && !matched.some(y => y.emoji == x.emoji)) matched.push(x);
|
||||||
|
return matched.length == 30;
|
||||||
|
});
|
||||||
|
}
|
||||||
this.emojis = matched;
|
this.emojis = matched;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue