lint and credo
This commit is contained in:
parent
b3887a6fa7
commit
a4e480a636
3 changed files with 16 additions and 8 deletions
|
|
@ -291,7 +291,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
|
|||
end
|
||||
|
||||
test "replying to own DM succeeds", %{user: user, conn: conn} do
|
||||
# this is an "edge" case for visibility: replying user is not part of addressed users (but is the author)
|
||||
# this is an "edge" case for visibility: replying user is not
|
||||
# part of addressed users (but is the author)
|
||||
stranger = insert(:user)
|
||||
|
||||
{:ok, %{id: dm_id} = dm_post_act} =
|
||||
|
|
@ -1546,7 +1547,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
|
|||
|
||||
assert match?(%{"error" => _}, resp1)
|
||||
|
||||
# unreblog by reblog ID (reblog IDs are accepted by some APIs; ensure it fails here one way or another)
|
||||
# unreblog by reblog ID (reblog IDs are accepted by some APIs;
|
||||
# ensure it fails here one way or another)
|
||||
resp2 =
|
||||
build_conn()
|
||||
|> assign(:user, user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue