aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorHélène <pleroma-dev@helene.moe>2022-05-18 21:25:10 +0200
committerHélène <pleroma-dev@helene.moe>2022-05-18 21:25:10 +0200
commita74ce2d77a53873b3edceeda7287b299c7922a8c (patch)
tree810b47e729b264d45d0a9f719465cc4558a94fc9 /ci
parent4605efe272016a5ba8ba6e96a9bec9a6e40c1591 (diff)
downloadpleroma-a74ce2d77a53873b3edceeda7287b299c7922a8c.tar.gz
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.
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions