pleroma/lib/pleroma/web/activity_pub/mrf
Hélène bb768244a4
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-26 20:06:41 +02:00
..
activity_expiration_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
anti_followbot_policy.ex Also use actor_type to determine if an account is a bot in antiFollowbotPolicy 2022-05-09 10:44:43 -05:00
anti_hellthread_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
anti_link_spam_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
change_react_to_like.ex ReactToLike: add missing emojis, make the log clear 2022-03-19 18:39:10 +01:00
drop_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
ensure_re_prepended.ex Update copyright, also 2022-02-12 11:53:32 -06:00
follow_bot_policy.ex MRF: create MRF.Policy behaviour separate from MRF module 2021-06-07 14:22:08 -05:00
force_bot_unlisted_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
force_mentions_in_content.ex ForceMentionsInContent: improve display of Markdown posts 2022-01-27 14:15:06 -06:00
hashtag_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
hellthread_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
keyword_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
media_proxy_warming_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
mention_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
no_empty_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
no_op_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
no_placeholder_text_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
normalize_markup.ex Update copyright, also 2022-02-12 11:53:32 -06:00
object_age_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
pipeline_filtering.ex Update copyright, also 2022-02-12 11:53:32 -06:00
policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
racism_remover.ex Shove all changes in one commit 2022-02-12 11:53:32 -06:00
reject_non_public.ex Update copyright, also 2022-02-12 11:53:32 -06:00
remove_sponsorship.ex Shove all changes in one commit 2022-02-12 11:53:32 -06:00
simple_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
steal_emoji_policy.ex StealEmojiPolicy: fix String rejected_shortcodes 2022-05-26 20:06:41 +02:00
subchain_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
tag_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
user_allow_list_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00
vocabulary_policy.ex Update copyright, also 2022-02-12 11:53:32 -06:00