Skip to content

A platform for community discussion. Free, open, simple.

FIX: Ensure group flair upload is present when deciding type (#12650)

David Taylor38e7fe2770cc
diff --git a/app/models/group.rb b/app/models/group.rb
index 5f752afb030..0b6204fad44 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -747,7 +747,7 @@ class Group < ActiveRecord::Base
def flair_type
return :icon if flair_icon.present?
- return :image if flair_upload_id.present?
+ return :image if flair_upload.present?
end
def flair_url