aboutsummaryrefslogtreecommitdiff
path: root/lib/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-26ForceBotUnlistedPolicy: fix to stop unlisting my posts >:(bot
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-24ForceMentionsInContent: simplify finding usersAlex Gleason
2022-01-24ForceMentionsInContent: wrap inline mentions with span tagAlex Gleason
2022-01-24ForceMentionsInContent: use `to` instead of `tag`Alex 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-10-06CI: Bump lint stage to elixir-1.12Haelwenn (lanodan) Monnier
Elixir 1.12 changed formatting rules, this allows to avoid having to rollback to run `mix format`
2021-08-14Add Admin-FE menu for StealEmojiPolicySam Therapy
2021-08-10ObjectAgePolicy: Fix pattern matching on publishedHaelwenn (lanodan) Monnier
2021-08-06Improve readabilityEgor Kislitsyn
2021-08-06Make transparency_exclusions use tuples in admin-feIlja
* Make it use tuples * I also changed the keys for key_placeholder and value_placeholder to use snake_case instead of camelCase
2021-08-06Add key- and valuePlaceholders for quarantined_instances and mrf_simpleIlja
* I also added for keywordpolicy as well now. It was done in the admin-fe, but is better to be done here * I also added comments to explain why we did the _info keys (backwards compatibility)
2021-08-06Change what nodeinfo returns without breaking backwards compatibilityIlja
* Only for SimplePolicy for now * I added an extra mrf_simple_info key that has an object as value. The object contains only relevant extra info
2021-08-06Return maps in node_infoIlja
It's easiest (and imo most proper) to use tuples {"instance, "reason"} in BE, but for FE maps like %{"instance": "instance", "reason", "reason"} are better. I changed it so that node_info returns maps now for simple_policy and quarantined instances.
2021-08-06config :mrf, :transparency_exclusions works with tumples nowIlja
2021-08-06Make quarentine work with list of tuples instead of stringsIlja
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-06-07MRF: create MRF.Policy behaviour separate from MRF moduleAlex Gleason
Speeds up recompilation by reducing compile-time deps
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-30Prefer FollowBot naming convention vs FollowbotMark Felder
2021-03-30Remove Task.async as it is broken here and probably a premature optimization ↵Mark Felder
anyway
2021-03-30Do not try to follow local users. Their posts are already available locally ↵Mark Felder
on the instance.
2021-03-30Change module name to FollowbotPolicyMark Felder
2021-03-30LintMark Felder
2021-03-30Better checking of previous follow request attemptsMark Felder
2021-03-30Prevent duplicates from being processedMark Felder
2021-03-30Make the followbot only dispatch follow requests once per 30 day periodMark Felder
2021-03-30Enforce that the followbot must be marked as a bot.Mark Felder
2021-03-30Try to handle misconfiguration scenarios gracefullyMark Felder