pleroma/test/pleroma
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 Update copyright, also 2022-02-12 11:53:32 -06:00
bbs Update copyright, also 2022-02-12 11:53:32 -06:00
chat Update copyright, also 2022-02-12 11:53:32 -06:00
config Update copyright, also 2022-02-12 11:53:32 -06:00
conversation Update copyright, also 2022-02-12 11:53:32 -06:00
docs Update copyright, also 2022-02-12 11:53:32 -06:00
ecto_type/activity_pub/object_validators Update copyright, also 2022-02-12 11:53:32 -06:00
emails Send emails i18n'd using backend-stored user language 2022-05-09 10:44:43 -05:00
emoji Update copyright, also 2022-02-12 11:53:32 -06:00
gun Update copyright, also 2022-02-12 11:53:32 -06:00
http Update copyright, also 2022-02-12 11:53:32 -06:00
instances Update copyright, also 2022-02-12 11:53:32 -06:00
integration Update copyright, also 2022-02-12 11:53:32 -06:00
mfa Update copyright, also 2022-02-12 11:53:32 -06:00
migration_helper Update copyright, also 2022-02-12 11:53:32 -06:00
object Update copyright, also 2022-02-12 11:53:32 -06:00
password Update copyright, also 2022-02-12 11:53:32 -06:00
repo/migrations Update copyright, also 2022-02-12 11:53:32 -06:00
upload Update copyright, also 2022-02-12 11:53:32 -06:00
uploaders Update copyright, also 2022-02-12 11:53:32 -06:00
user Update copyright, also 2022-02-12 11:53:32 -06:00
web StealEmojiPolicy: fix String rejected_shortcodes 2022-05-26 20:06:41 +02:00
workers Update copyright, also 2022-02-12 11:53:32 -06:00
activity_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
application_requirements_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
bookmark_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
captcha_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
chat_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
config_db_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
config_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
conversation_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
emoji_test.exs Add unicode 14 support 2022-02-21 17:27:22 -06:00
filter_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
following_relationship_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
formatter_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
frontend_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
hashtag_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
healthcheck_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
html_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
http_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
instances_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
job_queue_monitor_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
keys_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
list_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
marker_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
mfa_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
moderation_log_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
notification_test.exs Delete report notifs when demoting from superuser 2022-05-09 10:44:43 -05:00
object_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
otp_version_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
pagination_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
registration_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
repo_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
report_note_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
reverse_proxy_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
runtime_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
safe_jsonb_set_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
scheduled_activity_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
signature_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
stats_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
upload_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
user_invite_token_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
user_relationship_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
user_search_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
user_test.exs Delete report notifs when demoting from superuser 2022-05-09 10:44:43 -05:00
utils_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00
xml_builder_test.exs Update copyright, also 2022-02-12 11:53:32 -06:00