aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2021-01-05 13:58:52 +0200
committerShpuld Shpuldson <shp@cock.li>2021-01-05 13:58:52 +0200
commitab2c2c66bfe96571d14cff4b8c69fe0c90d5a3c7 (patch)
treed35c6958a49431358e131601ca31f753c804fd99 /src/modules
parent5e96260a4f855e2d93915c1b428a7209a882c8cb (diff)
parent3e7d1fbf23b5ca1b382381b49affc481404137da (diff)
Merge branch 'develop' into feat/report-notification
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/config.js1
-rw-r--r--src/modules/instance.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/config.js b/src/modules/config.js
index 444b8ec7..cd088737 100644
--- a/src/modules/config.js
+++ b/src/modules/config.js
@@ -20,6 +20,7 @@ export const defaultState = {
customTheme: undefined,
customThemeSource: undefined,
hideISP: false,
+ hideInstanceWallpaper: false,
// bad name: actually hides posts of muted USERS
hideMutedPosts: undefined, // instance default
collapseMessageWithSubject: undefined, // instance default
diff --git a/src/modules/instance.js b/src/modules/instance.js
index 5f7bf0ec..411b1caa 100644
--- a/src/modules/instance.js
+++ b/src/modules/instance.js
@@ -127,7 +127,7 @@ const instance = {
imageUrl: false,
replacement: values[key]
}
- }).sort((a, b) => a.displayText - b.displayText)
+ }).sort((a, b) => a.name > b.name ? 1 : -1)
commit('setInstanceOption', { name: 'emoji', value: emoji })
} else {
throw (res)
@@ -154,7 +154,7 @@ const instance = {
}
// Technically could use tags but those are kinda useless right now,
// should have been "pack" field, that would be more useful
- }).sort((a, b) => a.displayText.toLowerCase() > b.displayText.toLowerCase() ? 1 : 0)
+ }).sort((a, b) => a.displayText.toLowerCase() > b.displayText.toLowerCase() ? 1 : -1)
commit('setInstanceOption', { name: 'customEmoji', value: emoji })
} else {
throw (res)