summaryrefslogtreecommitdiff
path: root/test/support/http_request_mock.ex
AgeCommit message (Collapse)Author
2023-01-02Revert "Merge branch 'copyright-bump' into 'develop'"lain
This reverts merge request !3825
2023-01-01Bump copyright yearmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-03expanding WebFingerAlexander Strizhakov
2022-08-15CommonFixes: more predictable context generationHélène
`context` fields for objects and activities can now be generated based on the object/activity `inReplyTo` field or its ActivityPub ID, as a fallback method in cases where `context` fields are missing for incoming activities and objects.
2022-08-10CreateGenericValidator: fix reply context fixingHélène
Incoming Pleroma replies to a Misskey thread were rejected due to a broken context fix, which caused them to not be visible until a non-Pleroma user interacted with the replies. This fix properly sets the post-fix object context to its parent Create activity as well, if it was changed.
2022-07-31Merge branch 'develop' into 'from/develop/tusooa/emit-move'tusooa
# Conflicts: # CHANGELOG.md # test/pleroma/user_test.exs
2022-02-25Copyright bump for 2022Sean King
2022-02-02Add tests for mismatched context in repliesAlex Gleason
2021-12-28Test that the target account is re-fetched in move_accountTusooa Zhu
Ref: emit-move
2021-12-28Make move_account endpoint process non-existent users properlyTusooa Zhu
Ref: emit-move
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-03-25validator renaming & add validation for targetAlexander Strizhakov
2021-03-25Let pins federateAlexander Strizhakov
- save object ids on pin, instead of activity ids - pins federation - removed pinned_activities field from the users table - activityPub endpoint for user pins - pulling remote users pins
2021-03-22Copy emoji in the subject from parent postrinpatch
Sometimes people put emoji in the subject, which results in the subject looking broken if someone replies to it from a server that does not have the said emoji under the same shortcode. This patch solves the problem by extending the emoji set available in the summary to that of the parent post.
2021-03-19respect content-type header in finger requestAlexander Strizhakov
2021-02-21Video: Handle peertube videos only stashing attachments in x-mpegURLHaelwenn (lanodan) Monnier
Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2535
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-11-12Fix object spoofing vulnerability in attachmentsrinpatch
Validate the content-type of the response when fetching an object, according to https://www.w3.org/TR/activitypub/#x3-2-retrieving-objects. content-type headers had to be added to many mocks in order to support this, some of this was done with a regex. While I did go over the resulting files to check I didn't modify anything unrelated, there is a possibility I missed something. Closes pleroma#1948
2020-09-14RichMedia: Do a HEAD request to check content type/lengthrinpatch
This shouldn't be too expensive, since the connections are pooled, but it should save us some bandwidth since we won't fetch non-html files and files that are too large for us to process (especially since you can't cancel a request without closing the connection with HTTP1).
2020-09-08Remove OStatus in testsuiteHaelwenn (lanodan) Monnier
2020-09-02correct pool and uniform headers formatAlexander Strizhakov
2020-07-15Fix attachments in pollsHaelwenn (lanodan) Monnier
2020-07-08Move get_favicon to Pleroma.Instances, use /Haelwenn (lanodan) Monnier
2020-07-08Add support for remote faviconsHaelwenn (lanodan) Monnier
2020-07-07Fix getting videos from peertubeHaelwenn (lanodan) Monnier
2020-05-14MRF.StealEmojiPolicy: New PolicyHaelwenn (lanodan) Monnier
Inspired by https://git.pleroma.social/moonman/emoji-stealer-mrf/-/blob/master/steal_emoji_policy.ex
2020-05-03Webfinger: Request account info with the acct schemelain
2020-04-28convert markdown content to htmlMaksim Pechnikov
2020-04-13fix mediaType of objectMaksim Pechnikov
2020-03-30Merge branch 'develop' into gunAlexander Strizhakov
2020-03-29Merge branch 'feature/funkwhale-audio' into 'develop'Haelwenn
Add support for funkwhale Audio activity Closes #764 and #1624 See merge request pleroma/pleroma!2287
2020-03-12Merge branch 'develop' into gunAlexander Strizhakov
2020-03-11Add support for funkwhale Audio activityHaelwenn (lanodan) Monnier
reel2bits fixture not included as it lacks the Actor fixture for it. Closes: https://git.pleroma.social/pleroma/pleroma/issues/1624 Closes: https://git.pleroma.social/pleroma/pleroma/issues/764
2020-03-03Merge branch 'develop' into gunAlexander Strizhakov
2020-03-02relay list shows hosts without accepted followAlexander Strizhakov
2020-03-02Bump copyright years of files changed after 2020-01-07Haelwenn (lanodan) Monnier
Done via the following command: git diff fcd5dd259a1700a045be902b43391b0d1bd58a5b --stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
2020-02-18adding gun adapterAlexander Strizhakov
2020-01-28Fix compatibility with Elixir v1.10Egor Kislitsyn
2019-12-17Add ActivityPub Object Event type supportThomas Citharel
Adds Event support in the same way Video objects are handled, with the name of the object as message header. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-30test missing first fieldkPherox
2019-11-04add missing tesla mocksSteven Fuchs
2019-10-19implement invisible support for remote usersAriadne Conill
2019-10-18add some missing tesla fixturesAriadne Conill
2019-10-09provide mocks for webfinger endpointsSteven Fuchs
2019-10-05Add test for handling Announces with inlined object from different originThibaut Girka
2019-10-05Import object from self-Announce whenever possibleThibaut Girka
2019-09-18Merge branch 'chores/bump-copyright-year' into 'develop'rinpatch
Bump copyright years of files changed in 2019 See merge request pleroma/pleroma!1698
2019-09-18Bump copyright years of files changed in 2019Haelwenn (lanodan) Monnier
Done via the following command: git diff 1e6c102bfcfe0e4835a48f2483f2376f9bf86a20 --stat --name-only | cat - | xargs sed -i 's/2017-2018 Pleroma Authors/2017-2019 Pleroma Authors/'
2019-09-18Initial poll refresh supportrinpatch
Implement refreshing the object with an interval and call the function when getting the poll.
2019-09-05Mastodon API Poll view: Fix handling of polls without an end daterinpatch