summaryrefslogtreecommitdiff
path: root/test/object
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-06-23 05:30:34 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-07-15 12:32:42 +0200
commitc19bdc811e526f83a2120c58f858044f4ff96e5f (patch)
tree3f98f5464675da0f7064da1b8d876f596cba4a13 /test/object
parentd713930ea7fe78f705f534febe4ceaf0a0216d24 (diff)
downloadpleroma-c19bdc811e526f83a2120c58f858044f4ff96e5f.tar.gz
pleroma-c19bdc811e526f83a2120c58f858044f4ff96e5f.zip
Fix attachments in polls
Diffstat (limited to 'test/object')
-rw-r--r--test/object/fetcher_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/object/fetcher_test.exs b/test/object/fetcher_test.exs
index d9098ea1b..16cfa7f5c 100644
--- a/test/object/fetcher_test.exs
+++ b/test/object/fetcher_test.exs
@@ -177,6 +177,13 @@ defmodule Pleroma.Object.FetcherTest do
"https://mastodon.example.org/users/userisgone404"
)
end
+
+ test "it can fetch pleroma polls with attachments" do
+ {:ok, object} =
+ Fetcher.fetch_object_from_id("https://patch.cx/objects/tesla_mock/poll_attachment")
+
+ assert object
+ end
end
describe "pruning" do