X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fmastodon_api%2Fstatus_view_test.exs;h=9e2bc3c185ce8bf4eb2d70b1aaf4b412ed76b604;hb=0300bc5569a6fd8b728659dc5198896d25f41c80;hp=0d396f3b8418a97988b8473631afb3ce96007e24;hpb=52200998c997576c9008cbe50b0a7b9f0e6134cc;p=akkoma diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 0d396f3b8..9e2bc3c18 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -60,6 +60,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do recipient = "https://pleroma.soykaf.com/users/lain" user = User.get_cached_by_ap_id(recipient) || insert(:user, %{ap_id: recipient}) + # invalidate the cache + User.invalidate_cache(user) + {:ok, [activity]} = OStatus.handle_incoming(incoming) status = StatusView.render("status.json", %{activity: activity})