mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REVERT "FIX: do not show private group flair on user avatars" (#13991)
This reverts commitfe3e18f981and0d8fd9ace6
This commit is contained in:
@@ -803,22 +803,12 @@ class Group < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def flair_url
|
||||
return if members_visibility_level != Group.visibility_levels[:public]
|
||||
return if visibility_level != Group.visibility_levels[:public]
|
||||
|
||||
return flair_icon if flair_type == :icon
|
||||
return upload_cdn_path(flair_upload.url) if flair_type == :image
|
||||
|
||||
nil
|
||||
end
|
||||
|
||||
def flair_bg_color
|
||||
return if members_visibility_level != Group.visibility_levels[:public]
|
||||
return if visibility_level != Group.visibility_levels[:public]
|
||||
|
||||
read_attribute(:flair_bg_color)
|
||||
end
|
||||
|
||||
[:muted, :regular, :tracking, :watching, :watching_first_post].each do |level|
|
||||
define_method("#{level}_category_ids=") do |category_ids|
|
||||
@category_notifications ||= {}
|
||||
|
||||
Reference in New Issue
Block a user