alias Pleroma.User
alias Pleroma.Object.Containment
- alias Pleroma.Web.ActivityPub.ActivityPub
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,
defmodule Pleroma.Object.FetcherTest do
use Pleroma.DataCase
- alias Pleroma.{Activity, Object}
+ alias Pleroma.Activity
+ alias Pleroma.Object
alias Pleroma.Object.Fetcher
- import Pleroma.Factory
-
describe "actor origin containment" do
test "it rejects objects with a bogus origin" do
{:error, _} = Fetcher.fetch_object_from_id("https://info.pleroma.site/activity.json")