mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
fix test
This commit is contained in:
parent
cdc153db31
commit
31259cabcc
1 changed files with 3 additions and 10 deletions
|
@ -124,16 +124,9 @@ defmodule Mix.Tasks.Pleroma.UserTest do
|
||||||
Keyword.put(meta, :local, true)
|
Keyword.put(meta, :local, true)
|
||||||
)
|
)
|
||||||
|
|
||||||
like_obj = Pleroma.Object.get_by_ap_id(like_activity.data["object"])
|
like_activity.data["object"]
|
||||||
|
|> Pleroma.Object.get_by_ap_id()
|
||||||
data =
|
|> Repo.delete()
|
||||||
Map.merge(like_activity.data, %{"object" => "tag:gnusocial.cc,2019-01-09:noticeId=210716"})
|
|
||||||
|
|
||||||
like_activity
|
|
||||||
|> Ecto.Changeset.change(data: data)
|
|
||||||
|> Repo.update()
|
|
||||||
|
|
||||||
Repo.delete(like_obj)
|
|
||||||
|
|
||||||
clear_config([:instance, :federating], true)
|
clear_config([:instance, :federating], true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue