Skip to content
Snippets Groups Projects
Commit 0ee6e8af authored by kaniini's avatar kaniini Committed by lain
Browse files

mastodon api tests: invalidate user cache prior to importing a test reply


This is needed to ensure the user cache does not throw nil when creating the mentions
list.

Signed-off-by: default avatarlain <lain@soykaf.club>
parent 000b3f18
Branches
No related tags found
No related merge requests found
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment