akkoma/test/pleroma
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 Copyright bump for 2022 2022-02-25 23:11:42 -07:00
bbs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
chat Copyright bump for 2022 2022-02-25 23:11:42 -07:00
config Copyright bump for 2022 2022-02-25 23:11:42 -07:00
conversation Copyright bump for 2022 2022-02-25 23:11:42 -07:00
docs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
ecto_type/activity_pub/object_validators Copyright bump for 2022 2022-02-25 23:11:42 -07:00
emails Merge branch 'from/upstream-develop/tusooa/translate-pages' into 'develop' 2022-03-20 18:14:37 +00:00
emoji Copyright bump for 2022 2022-02-25 23:11:42 -07:00
gun Copyright bump for 2022 2022-02-25 23:11:42 -07:00
http Copyright bump for 2022 2022-02-25 23:11:42 -07:00
instances Copyright bump for 2022 2022-02-25 23:11:42 -07:00
integration Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mfa Copyright bump for 2022 2022-02-25 23:11:42 -07:00
migration_helper Copyright bump for 2022 2022-02-25 23:11:42 -07:00
object Copyright bump for 2022 2022-02-25 23:11:42 -07:00
password Copyright bump for 2022 2022-02-25 23:11:42 -07:00
repo/migrations Copyright bump for 2022 2022-02-25 23:11:42 -07:00
upload Copyright bump for 2022 2022-02-25 23:11:42 -07:00
uploaders Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user Copyright bump for 2022 2022-02-25 23:11:42 -07:00
web StealEmojiPolicy: fix String rejected_shortcodes 2022-05-18 21:25:10 +02:00
workers Copyright bump for 2022 2022-02-25 23:11:42 -07:00
activity_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
application_requirements_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
bookmark_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
captcha_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
chat_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
config_db_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
config_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
conversation_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
emoji_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
filter_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
following_relationship_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
formatter_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
frontend_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
hashtag_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
healthcheck_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
html_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
http_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
instances_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
job_queue_monitor_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
keys_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
list_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
marker_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mfa_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
moderation_log_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
notification_test.exs Merge branch 'delete_report_notifs_when_demoting_from_superuser' into 'develop' 2022-03-20 18:13:19 +00:00
object_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
otp_version_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
pagination_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
registration_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
repo_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
report_note_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
reverse_proxy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
runtime_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
safe_jsonb_set_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
scheduled_activity_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
signature_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
stats_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
upload_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_invite_token_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_relationship_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_search_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_test.exs Merge branch 'delete_report_notifs_when_demoting_from_superuser' into 'develop' 2022-03-20 18:13:19 +00:00
utils_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
xml_builder_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00