projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags...
[akkoma]
/
test
/
pleroma
/
web
/
mastodon_api
/
views
/
status_view_test.exs
diff --git
a/test/pleroma/web/mastodon_api/views/status_view_test.exs
b/test/pleroma/web/mastodon_api/views/status_view_test.exs
index f2a7469edb436ab1459d26572b4ec6278cdfb041..22717ce90bf3dc3aabefac0bd351ccfe75b0d53d 100644
(file)
--- a/
test/pleroma/web/mastodon_api/views/status_view_test.exs
+++ b/
test/pleroma/web/mastodon_api/views/status_view_test.exs
@@
-160,7
+160,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
{:ok, activity} = CommonAPI.post(user, %{status: "Hey @shp!", visibility: "direct"})
Repo.delete(user)
{:ok, activity} = CommonAPI.post(user, %{status: "Hey @shp!", visibility: "direct"})
Repo.delete(user)
-
Cachex.clear(:user_cache
)
+
User.invalidate_cache(user
)
finger_url =
"https://localhost/.well-known/webfinger?resource=acct:#{user.nickname}@localhost"
finger_url =
"https://localhost/.well-known/webfinger?resource=acct:#{user.nickname}@localhost"
@@
-194,7
+194,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|> Ecto.Changeset.change(%{ap_id: "#{user.ap_id}/extension/#{user.nickname}"})
|> Repo.update()
|> Ecto.Changeset.change(%{ap_id: "#{user.ap_id}/extension/#{user.nickname}"})
|> Repo.update()
-
Cachex.clear(:user_cache
)
+
User.invalidate_cache(user
)
result = StatusView.render("show.json", activity: activity)
result = StatusView.render("show.json", activity: activity)
@@
-262,8
+262,8
@@
defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
mentions: [],
tags: [
%{
mentions: [],
tags: [
%{
- name: "#{
object_data["tag"]
}",
- url: "/tag/#{
object_data["tag"]
}"
+ name: "#{
hd(object_data["tag"])
}",
+ url: "/tag/#{
hd(object_data["tag"])
}"
}
],
application: %{
}
],
application: %{