FIX: use correct name for selectable_avatars_enabled site setting

FIX: use correct name for selectable_avatars_enabled site setting

diff --git a/app/assets/javascripts/discourse/initializers/avatar-select.js.es6 b/app/assets/javascripts/discourse/initializers/avatar-select.js.es6
index 3b72cc5..f35ee67 100644
--- a/app/assets/javascripts/discourse/initializers/avatar-select.js.es6
+++ b/app/assets/javascripts/discourse/initializers/avatar-select.js.es6
@@ -5,9 +5,9 @@ export default {
   name: "avatar-select",
 
   initialize(container) {
-    this.selectAvatarsEnabled = container.lookup(
+    this.selectableAvatarsEnabled = container.lookup(
       "site-settings:main"
-    ).select_avatars_enabled;
+    ).selectable_avatars_enabled;
 
     container
       .lookup("app-events:main")
@@ -27,7 +27,7 @@ export default {
     const modal = showModal("avatar-selector");
     modal.setProperties({ user, selected });
 
-    if (this.selectAvatarsEnabled) {
+    if (this.selectableAvatarsEnabled) {
       ajax("/site/selectable-avatars.json").then(avatars =>
         modal.set("selectableAvatars", avatars)
       );

GitHub sha: f096c994

2 Likes

This commit has been mentioned on Discourse Meta. There might be relevant details there:

we need to make sure we mark this for backporting / point release

Done!

https://review.discourse.org/tags/cherry-pick-2-3

2 Likes