Return note objects as ostatus post activities.

This commit is contained in:
Roger Braun 2017-05-03 09:54:17 +02:00
commit 9c42453e06
4 changed files with 31 additions and 2 deletions

View file

@ -12,4 +12,16 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest do
assert response(conn, 200)
end
test "gets an object", %{conn: conn} do
note_activity = insert(:note_activity)
[_, uuid] = hd Regex.scan(~r/.+\/([\w-]+)$/, note_activity.data["object"]["id"])
url = "/objects/#{uuid}"
|> IO.inspect
conn = conn
|> get(url)
assert response(conn, 200)
end
end