diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2021-02-21 23:41:13 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2021-02-21 23:41:28 +0100 |
commit | 7fc9cd09740e31fe75ff3402f29614bb328240f7 (patch) | |
tree | bd2af94b89702e086f5281488792192c42ae78ad /test/support | |
parent | 8829a408ecf3bfffaf59af415817220fd63a81b7 (diff) | |
download | pleroma-7fc9cd09740e31fe75ff3402f29614bb328240f7.tar.gz |
Video: Handle peertube videos only stashing attachments in x-mpegURL
Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2535
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/http_request_mock.ex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 7da0a8380..1328d6225 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -275,6 +275,15 @@ defmodule HttpRequestMock do }} end + def get("https://peertube.stream/accounts/createurs", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: File.read!("test/fixtures/peertube/actor-person.json"), + headers: activitypub_object_headers() + }} + end + def get("https://peertube.moe/videos/watch/df5f464b-be8d-46fb-ad81-2d4c2d1630e3", _, _, _) do {:ok, %Tesla.Env{ |