docbrown/lib/data_update_scripts/20220815102733_backfill_community_emoji.rb
Julianna Tetreault de4acd4fa5
Remove Community Emoji from Admin Config 🌱 (#16902)
* 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>
2022-08-30 17:16:58 +02:00

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