FIX: do not fallback to flair_url column

flair_url is not loaded by our query anymore so avoid falling back
to the old value
This commit is contained in:
Sam Saffron
2020-05-25 16:25:42 +10:00
parent 47c6fe9bfa
commit c011b817b2
2 changed files with 1 additions and 19 deletions

View File

@@ -748,7 +748,7 @@ class Group < ActiveRecord::Base
end
def flair_url
flair_icon.presence || flair_upload&.url || self[:flair_url].presence
flair_icon.presence || flair_upload&.url
end
protected