summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/status_view_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-04-17 15:46:59 +0300
committerrinpatch <rinpatch@sdf.org>2019-04-17 15:46:59 +0300
commitff8d76c670eb25213948974d03bbc389421558a6 (patch)
treeab95b3af50e07d7e6b04861cc2aa6380c9e72ec1 /test/web/mastodon_api/status_view_test.exs
parentc3a20528060e4fb95292dd93768d9afc8926e66e (diff)
downloadpleroma-ff8d76c670eb25213948974d03bbc389421558a6.tar.gz
pleroma-ff8d76c670eb25213948974d03bbc389421558a6.zip
Refactor all tests that acessed the embeded object
Diffstat (limited to 'test/web/mastodon_api/status_view_test.exs')
-rw-r--r--test/web/mastodon_api/status_view_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index ad6344006..a02c7c210 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -61,7 +61,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|> Map.put("content", nil)
Object.change(note_object, %{data: data})
- |> Repo.update()
+ |> Object.update_and_set_cache()
User.get_cached_by_ap_id(note.data["actor"])