Pipeline Ingestion: Article

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-08-20 20:03:07 +02:00
commit 1b3d5956b1
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
9 changed files with 143 additions and 28 deletions

View file

@ -44,15 +44,6 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
assert "test" in object.data["tag"]
end
test "it works for incoming notices with url not being a string (prismo)" do
data = File.read!("test/fixtures/prismo-url-map.json") |> Poison.decode!()
{:ok, %Activity{data: data, local: false}} = Transmogrifier.handle_incoming(data)
object = Object.normalize(data["object"])
assert object.data["url"] == "https://prismo.news/posts/83"
end
test "it cleans up incoming notices which are not really DMs" do
user = insert(:user)
other_user = insert(:user)