defmodule Pleroma.Object.ContainmentTest do
use Pleroma.DataCase
- alias Pleroma.User
alias Pleroma.Object.Containment
- alias Pleroma.Web.ActivityPub.ActivityPub
+ alias Pleroma.User
import Pleroma.Factory
end
test "users cannot be collided through fake direction spoofing attempts" do
- user =
+ _user =
insert(:user, %{
nickname: "rye@niu.moe",
local: false,
{:error, _} = User.get_or_fetch_by_ap_id("https://n1u.moe/users/rye")
end
-
- test "all objects with fake directions are rejected by the object fetcher" do
- {:error, _} =
- ActivityPub.fetch_and_contain_remote_object_from_id(
- "https://info.pleroma.site/activity4.json"
- )
- end
end
end