aboutsummaryrefslogtreecommitdiff
path: root/test/pleroma/web/activity_pub
AgeCommit message (Collapse)Author
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-09Test local-only in ap c2s outboxTusooa Zhu
Ref: fix-local-public
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-05-06Prevent remote access of local-only posts via /objectsTusooa Zhu
Ref: fix-local-public
2022-05-06Skip cache when /objects or /activities is authenticatedTusooa Zhu
Ref: fix-local-public
2022-03-17AttachmentValidator: Use custom ecto type and regex for "mediaType"Haelwenn (lanodan) Monnier
2022-02-25Copyright bump for 2022Sean King
2022-02-02Add tests for mismatched context in repliesAlex Gleason
2022-02-02Test that a Create/Note from Roadhouse validatesAlex Gleason
2022-02-02Test that a Note from Roadhouse validatesAlex Gleason
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-25Merge branch 'recipients-inline' into 'develop'Alex Gleason
ForceMentionsInContent: wrap mentions in a span, fix the formatting See merge request pleroma/pleroma!3620
2022-01-25ForceMentionsInContent: fix order of mentionsAlex Gleason
2022-01-24ForceMentionsInContentTest: return mentions in a not terrible formatAlex Gleason
2022-01-23Birthdays: Fix tests, add test for misskeymarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-01-20Merge branch 'private-pins' into 'develop'Alex Gleason
Support private pinned posts from Mastodon See merge request pleroma/pleroma!3611
2022-01-20Support private pinned posts from Mastodonmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
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-12-28Federate unfollow activity in move_following properlyTusooa Zhu
0: Use the CommonAPI unfollow function to make sure the unfollow activity is federated. 1: Limit the follow and unfollow to local followers only, while let the romote servers decide whether to move their followers. Ref: emit-move
2021-12-28Make Move activity federate properlyTusooa Zhu
Ref: emit-move
2021-12-17LintTusooa Zhu
2021-12-17Add test to ensure removed follower cease to have relationship with ex-followeeTusooa Zhu
https://git.pleroma.social/pleroma/pleroma/-/issues/2802
2021-12-17Add test to ensure the blocked cease to have follow relationship to the blockerTusooa Zhu
https://git.pleroma.social/pleroma/pleroma/-/issues/2766
2021-12-17Allow updating accepted follow activities in ↵Tusooa Zhu
Web.ActivityPub.Utils.update_follow_state_for_all/2 Mastodon uses the Reject activity also for the purpose of removing a follower, in addition to reject a follow request. We should also update the original Follow activity in this case.
2021-12-07VideoHandlingTest: remove nil valuesAlex Gleason
2021-12-07Apply alexgleason's suggestion(s) to 1 file(s)Haelwenn
2021-12-07Merge remote-tracking branch 'origin/develop' into fix-attachment-dimensionsAlex Gleason
2021-12-07Fix VideoHandlingTestAlex Gleason
2021-12-07AttachmentValidator: ingest width and heightAlex Gleason
2021-12-07Transmogrifier: test fix_attachments/1Alex Gleason
2021-12-06make linter happyFloatingGhost
2021-12-06Make deactivated user check into a subqueryFloatingGhost
Fixes #2792
2021-11-15Merge branch 'fix-tests' into 'develop'lain
Test fixes See merge request pleroma/pleroma!3532
2021-11-15Merge branch 'block-behavior' into 'develop'lain
Configurable block visibility, fixes #2123 Closes #2123 See merge request pleroma/pleroma!3242
2021-11-14StealEmojiPolicyTest: Make mocks explicit.Lain Soykaf
2021-10-10object_validators: Group common fields in CommonValidationsHaelwenn (lanodan) Monnier
Notes: - QuestionValidator didn't have a :name field but that seems like a mistake - `_fields` functions can't inherit others because of some Validators - bto/bcc fields were absent in activities, also seems like a mistake (Well IIRC we don't or barely support bto/bcc anyway)
2021-08-28Merge branch 'features/ingestion-no-nil' into 'develop'Haelwenn
ObjectValidator.stringify_keys: filter out nil values See merge request pleroma/pleroma!3506
2021-08-14Merge branch 'builder-note' into 'develop'Haelwenn
CommonAPI.Utils.make_note_data/1 --> ActivityPub.Builder.note/1 See merge request pleroma/pleroma!3511
2021-08-14Builder.note/1: return {:ok, map(), keyword()} like other Builder functionsAlex Gleason
2021-08-14CommonAPI.Utils.make_note_data/1 --> ActivityPub.Builder.note/1Alex Gleason
2021-08-13ObjectAgePolicy: Fix pattern matching on publishedHaelwenn (lanodan) Monnier
Backport of: https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3500
2021-08-11ObjectValidator.stringify_keys: filter out nil valuesHaelwenn (lanodan) Monnier
2021-08-10ObjectAgePolicy: Fix pattern matching on publishedHaelwenn (lanodan) Monnier
2021-08-09Merge branch 'poll-notification' into 'develop'Haelwenn
MastodonAPI: Support poll notification See merge request pleroma/pleroma!3484
2021-08-06Make quarentine work with list of tuples instead of stringsIlja
2021-08-06Add tests for setting `:instance, :quarantined_instances`Ilja
No test was done for quarantined instances yet. I added a factory for followers_only notes and checked * That no followers only post is send when the target server is quarantined * That a followers only post is send when the target server is not quarantined
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