mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 15:05:45 +00:00
SideEffectsTest: Fix test.
This commit is contained in:
parent
1adafa0966
commit
25077812bf
|
@ -4,11 +4,12 @@
|
||||||
|
|
||||||
defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
|
defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
|
||||||
use Pleroma.DataCase
|
use Pleroma.DataCase
|
||||||
|
|
||||||
alias Pleroma.Object
|
alias Pleroma.Object
|
||||||
alias Pleroma.Web.CommonAPI
|
|
||||||
alias Pleroma.Web.ActivityPub.Builder
|
|
||||||
alias Pleroma.Web.ActivityPub.ActivityPub
|
alias Pleroma.Web.ActivityPub.ActivityPub
|
||||||
|
alias Pleroma.Web.ActivityPub.Builder
|
||||||
alias Pleroma.Web.ActivityPub.SideEffects
|
alias Pleroma.Web.ActivityPub.SideEffects
|
||||||
|
alias Pleroma.Web.CommonAPI
|
||||||
|
|
||||||
import Pleroma.Factory
|
import Pleroma.Factory
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffectsTest do
|
||||||
{:ok, post} = CommonAPI.post(user, %{"status" => "hey"})
|
{:ok, post} = CommonAPI.post(user, %{"status" => "hey"})
|
||||||
|
|
||||||
{:ok, like_data, _meta} = Builder.like(user, post.object)
|
{:ok, like_data, _meta} = Builder.like(user, post.object)
|
||||||
{:ok, like, _meta} = ActivityPub.persist(like_data, [])
|
{:ok, like, _meta} = ActivityPub.persist(like_data, [local: true])
|
||||||
|
|
||||||
%{like: like, user: user}
|
%{like: like, user: user}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue