* Removes all community_emoji-related code * Removes community_emoji-related specs from codebase * Updates communitySection.spec.js to test for member_label * chore: merge conflicts * feat: remove data update script * chore: add file back Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
13 lines
550 B
Ruby
13 lines
550 B
Ruby
module DataUpdateScripts
|
|
class BackfillCommunityEmoji
|
|
# We can remove this file in the future once we've given self hosters sufficient
|
|
# time to update their Forems to run this script.
|
|
def run
|
|
return if Settings::Community.community_emoji.blank?
|
|
return if Settings::Community.community_name.include?(Settings::Community.community_emoji)
|
|
|
|
new_community_name = "#{Settings::Community.community_name} #{Settings::Community.community_emoji}"
|
|
Settings::Community.community_name = new_community_name
|
|
end
|
|
end
|
|
end
|