diff options
author | Hélène <pleroma-dev@helene.moe> | 2022-05-18 21:25:10 +0200 |
---|---|---|
committer | Hélène <pleroma-dev@helene.moe> | 2022-05-18 21:25:10 +0200 |
commit | a74ce2d77a53873b3edceeda7287b299c7922a8c (patch) | |
tree | 810b47e729b264d45d0a9f719465cc4558a94fc9 /docs/development | |
parent | 4605efe272016a5ba8ba6e96a9bec9a6e40c1591 (diff) | |
download | pleroma-a74ce2d77a53873b3edceeda7287b299c7922a8c.tar.gz pleroma-a74ce2d77a53873b3edceeda7287b299c7922a8c.zip |
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 'docs/development')
0 files changed, 0 insertions, 0 deletions