mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: selectable avatars
This commit is contained in:
@@ -25,6 +25,16 @@ class SiteController < ApplicationController
|
||||
render json: custom_emoji
|
||||
end
|
||||
|
||||
def selectable_avatars
|
||||
avatars = if SiteSetting.selectable_avatars_enabled?
|
||||
(SiteSetting.selectable_avatars.presence || "").split("\n")
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
||||
render json: avatars, root: false
|
||||
end
|
||||
|
||||
def basic_info
|
||||
results = {
|
||||
logo_url: UrlHelper.absolute(SiteSetting.logo_url),
|
||||
|
||||
Reference in New Issue
Block a user