code snippets and stuff

masto-hide-mutstd-variants.rb 176B

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