aboutsummaryrefslogtreecommitdiff
path: root/test/pleroma/web/activity_pub/mrf
AgeCommit message (Collapse)Author
2022-07-24Make AntiLinkSpamPolicy history-awareTusooa Zhu
2022-07-24Make HashtagPolicy history-awareTusooa Zhu
2022-07-23Make NoEmptyPolicy work with UpdateTusooa Zhu
2022-07-23Make NormalizeMarkup history-awareTusooa Zhu
2022-07-23Make NoPlaceholderTextPolicy history-awareTusooa Zhu
2022-07-23Make MediaProxyWarmingPolicy history-awareTusooa Zhu
2022-07-23Make ForceMentionsInContent history-awareTusooa Zhu
2022-07-23Make EnsureRePrepended history-awareTusooa Zhu
2022-07-23Make MRF Keyword history-awareTusooa Zhu
2022-05-18StealEmojiPolicy: fix String rejected_shortcodesHélène
* 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-08Merge branch 'improve_anti_followbot_policy' into 'develop'Haelwenn
Also use actor_type to determine if an account is a bot in antiFollowbotPolicy Closes #2561 See merge request pleroma/pleroma!3498
2022-05-08Also use actor_type to determine if an account is a bot in antiFollowbotPolicyIlja
2022-02-25Copyright bump for 2022Sean King
2022-01-27ForceMentionsInContent: improve display of Markdown postsAlex Gleason
2022-01-26ForceMentionsInContent: don't apply it to top-level postsAlex Gleason
2022-01-25ForceMentionsInContent: don't mention selfAlex Gleason
2022-01-25ForceMentionsInContent: fix order of mentionsAlex Gleason
2022-01-24ForceMentionsInContentTest: return mentions in a not terrible formatAlex Gleason
2022-01-19Add ForceMentionsInContentPolicyrinpatch
Even though latest PleromaFE supports displaying these properly, mobile apps still exist, so I think we should offer a workaround to those who want it.
2021-11-14StealEmojiPolicyTest: Make mocks explicit.Lain Soykaf
2021-08-10ObjectAgePolicy: Fix pattern matching on publishedHaelwenn (lanodan) Monnier
2021-08-06Make mrfSimple work with tuplesIlja
* Changed SimplePolicy * I also grepped in test/ for ':mrf_simple' to see what other things could be affected
2021-05-31Merge remote-tracking branch 'pleroma/develop' into cycles-base-urlAlex Gleason
2021-05-31Deprecate Pleroma.Web.base_url/0Alex Gleason
Use Pleroma.Web.Endpoint.url/0 directly instead. Reduces compiler cycles.
2021-04-30Merge remote-tracking branch 'upstream/develop' into simplepolicy-announce-leakAlex Gleason
2021-04-30SimplePolicy: filter string ObjectsAlex Gleason
2021-04-30SimplePolicy: filter nested objectsAlex Gleason
2021-03-30Fix function calls due to module name changeMark Felder
2021-03-30Temp file leaked, oopsMark Felder
2021-03-30Prefer FollowBot naming convention vs FollowbotMark Felder
2021-03-30More tests to validate Followbot is behavingMark Felder
2021-03-30Only need to validate a follow request is generated for nowMark Felder
2021-02-27Remove sensitive-property setting #nsfw, create HashtagPolicyHaelwenn (lanodan) Monnier
2021-02-08MRF NoEmptyPolicy: Deny posts from local users if there is no content or ↵Mark Felder
only mentions. Helps prevent accidental button mashes from submitting incomplete posts
2021-01-26Convert tests to all use clear_config instead of Pleroma.Config.putMark Felder
2021-01-13Bump Copyright to 2021Haelwenn (lanodan) Monnier
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
2020-12-27insreasing test coverage for StealEmojiPolicyAlexander Strizhakov
2020-12-21Tests: Make as many tests as possible async.lain
In general, tests that match these criteria can be made async: - Doesn't use real Cachex. - Doesn't write to the Config / Application Environment. - Uses Mock. Using Mox is fine. - Uses the streamer.
2020-11-23Use Jason instead of Poison in testsMark Felder
2020-11-11Moving some background jobs into simple tasksAlexander Strizhakov
- fetching activity data - attachment prefetching - using limiter to prevent overload
2020-10-15Fix warningsEgor Kislitsyn
2020-10-13changes after rebaseAlexander Strizhakov
2020-10-13tests consistencyAlexander Strizhakov