pleroma/test/pleroma/web/activity_pub/mrf
Hélène a74ce2d77a
StealEmojiPolicy: fix String rejected_shortcodes
* rejected_shortcodes is defined as a list of strings in the
  configuration description. As such, database-based configuration was
  led to handle those settings as strings, and not as the actually
  expected type, Regex.
* This caused each message passing through this MRF, if a rejected
  shortcode was set and the emoji did not exist already on the instance,
  to fail federating, as an exception was raised, swiftly caught and
  mostly silenced.
* This commit fixes the issue by introducing new behavior: strings are
  now handled as perfect matches for an emoji shortcode (meaning that if
  the emoji-to-be-pulled's shortcode is in the blacklist, it will be
  rejected), while still supporting Regex types as before.
2022-05-18 21:25:10 +02:00
..
activity_expiration_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
anti_followbot_policy_test.exs Merge branch 'improve_anti_followbot_policy' into 'develop' 2022-05-08 18:10:40 +00:00
anti_link_spam_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
ensure_re_prepended_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
follow_bot_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
force_bot_unlisted_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
force_mentions_in_content_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
hashtag_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
hellthread_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
keyword_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
media_proxy_warming_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mention_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
no_empty_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
no_placeholder_text_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
normalize_markup_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
object_age_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
reject_non_public_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
simple_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
steal_emoji_policy_test.exs StealEmojiPolicy: fix String rejected_shortcodes 2022-05-18 21:25:10 +02:00
subchain_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
tag_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_allow_list_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
vocabulary_policy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00