akkoma/test/pleroma/web/activity_pub/mrf
Hélène 8f140deb8f 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-06-29 20:47:45 +01:00
..
activity_expiration_policy_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
anti_followbot_policy_test.exs Also use actor_type to determine if an account is a bot in antiFollowbotPolicy 2022-06-29 20:47:44 +01:00
anti_link_spam_policy_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
ensure_re_prepended_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
follow_bot_policy_test.exs Fix function calls due to module name change 2021-03-30 11:10:44 -05:00
force_bot_unlisted_policy_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
hashtag_policy_test.exs Remove sensitive-property setting #nsfw, create HashtagPolicy 2021-02-27 21:26:17 +01:00
hellthread_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
keyword_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
media_proxy_warming_policy_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mention_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
no_empty_policy_test.exs mix format 2022-06-14 17:43:45 +01:00
no_placeholder_text_policy_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
normalize_markup_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
object_age_policy_test.exs ObjectAgePolicy: Fix pattern matching on published 2021-08-10 07:41:06 +02:00
reject_non_public_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
simple_policy_test.exs Make mrfSimple work with tuples 2021-08-06 07:58:58 +02:00
steal_emoji_policy_test.exs StealEmojiPolicy: fix String rejected_shortcodes 2022-06-29 20:47:45 +01:00
subchain_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
tag_policy_test.exs Remove sensitive-property setting #nsfw, create HashtagPolicy 2021-02-27 21:26:17 +01:00
user_allow_list_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
vocabulary_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00