summary refs log tree commit diff
path: root/masto-hide-mutstd-variants.rb
blob: fdbdba52f9b42697e2a5bb6768c42a480d7b26e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
# original source: https://monsterware.dev/multiple_creatures/junk-in-the-trunk/commit/07143558bb296e02b9e8aaff6488ad08688f1c26

CustomEmoji.local.each do |e|
  # hide the mutstd variants
  if e.shortcode =~ /^ms_/ and e.shortcode =~ /_\w\w?\d+$/ then
    e.visible_in_picker = false
    e.save!
  end
end