use commonapi.post instead of activitybulder
This commit is contained in:
parent
1341ee650e
commit
9c6abec4d8
|
@ -427,10 +427,10 @@ test "without valid credentials", %{conn: conn} do
|
||||||
|
|
||||||
test "with credentials", %{conn: conn, user: current_user} do
|
test "with credentials", %{conn: conn, user: current_user} do
|
||||||
{:ok, activity} =
|
{:ok, activity} =
|
||||||
ActivityBuilder.insert(
|
CommonAPI.post(current_user, %{
|
||||||
%{"to" => [current_user.ap_id, "https://www.w3.org/ns/activitystreams#Public"]},
|
"status" => "why is tenshi eating a corndog so cute?",
|
||||||
%{user: current_user}
|
"visibility" => "public"
|
||||||
)
|
})
|
||||||
|
|
||||||
conn =
|
conn =
|
||||||
conn
|
conn
|
||||||
|
@ -451,7 +451,10 @@ test "with credentials", %{conn: conn, user: current_user} do
|
||||||
|
|
||||||
test "does not show DMs in mentions timeline", %{conn: conn, user: current_user} do
|
test "does not show DMs in mentions timeline", %{conn: conn, user: current_user} do
|
||||||
{:ok, _activity} =
|
{:ok, _activity} =
|
||||||
ActivityBuilder.insert(%{"to" => [current_user.ap_id]}, %{user: current_user})
|
CommonAPI.post(current_user, %{
|
||||||
|
"status" => "Have you guys ever seen how cute tenshi eating a corndog is?",
|
||||||
|
"visibility" => "direct"
|
||||||
|
})
|
||||||
|
|
||||||
conn =
|
conn =
|
||||||
conn
|
conn
|
||||||
|
|
Loading…
Reference in New Issue