mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-25 01:24:02 -05:00
parent
afceef74c2
commit
8cafeedc25
@ -54,9 +54,13 @@ function addCustomToPool(custom, pool) {
|
|||||||
index = {};
|
index = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
function search(value, { emojisToShowFilter, maxResults, include, exclude, custom = [] } = {}) {
|
function search(value, { emojisToShowFilter, maxResults, include, exclude, custom } = {}) {
|
||||||
if (customEmojisList !== custom)
|
if (custom !== undefined) {
|
||||||
addCustomToPool(custom, originalPool);
|
if (customEmojisList !== custom)
|
||||||
|
addCustomToPool(custom, originalPool);
|
||||||
|
} else {
|
||||||
|
custom = [];
|
||||||
|
}
|
||||||
|
|
||||||
maxResults = maxResults || 75;
|
maxResults = maxResults || 75;
|
||||||
include = include || [];
|
include = include || [];
|
||||||
|
Loading…
Reference in New Issue
Block a user