summaryrefslogtreecommitdiff
path: root/test/support/http_request_mock.ex
AgeCommit message (Collapse)Author
2025-03-11Tests: Fix tests.Lain Soykaf
2024-07-17Rework some Rich Media functionality for better error handlingMark Felder
Oban should not retry jobs that are likely to fail again
2024-05-22Fix testsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-22Merge remote-tracking branch 'origin/develop' into HEADmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-02-06Pleroma.Web.RichMedia.Parser: Remove test-specific codepathsMark Felder
Also consolidate Tesla mocks into the HttpRequestMock module. Tests were not exercising the real codepaths. The Rich Media Preview only works with https, but most of these tests were only mocking http.
2024-02-05Ensure URLs with IP addresses for the host do not generate previewsMark Felder
2024-02-04Fix Rich Media Previews for updated activitiesMark Felder
The Rich Media Previews were not regenerated when a post was updated due to a cache invalidation issue. They are now cached by the activity id so they can be evicted with the other activity cache objects in the :scrubber_cache.
2024-01-21Merge branch 'develop' into 'public-polls'Haelwenn
# Conflicts: # docs/development/API/differences_in_mastoapi_responses.md
2023-12-28Fix some more typosmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-12-20Elixir 1.15: Chase the Logger.warn deprecationMark Felder
2023-10-29Add entry to @context, testsmarcin mikołajczak
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-09-13Transmogrifier: fetch quoted postAlex Gleason
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