projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make conversation-id deterministic (#154)
[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 9ef44cacaf33994000a470efa67a118fb49f35cf..130de1b179bb55152c26dc6f7a781a361eee568f 100644
(file)
--- a/
test/pleroma/web/mastodon_api/views/status_view_test.exs
+++ b/
test/pleroma/web/mastodon_api/views/status_view_test.exs
@@
-14,7
+14,6
@@
defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
alias Pleroma.User
alias Pleroma.UserRelationship
alias Pleroma.Web.CommonAPI
alias Pleroma.User
alias Pleroma.UserRelationship
alias Pleroma.Web.CommonAPI
- alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.MastodonAPI.AccountView
alias Pleroma.Web.MastodonAPI.StatusView
alias Pleroma.Web.MastodonAPI.AccountView
alias Pleroma.Web.MastodonAPI.StatusView
@@
-240,7
+239,7
@@
defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
object_data = Object.normalize(note, fetch: false).data
user = User.get_cached_by_ap_id(note.data["actor"])
object_data = Object.normalize(note, fetch: false).data
user = User.get_cached_by_ap_id(note.data["actor"])
- convo_id =
Utils.context_to_conversation_id
(object_data["context"])
+ convo_id =
:erlang.crc32
(object_data["context"])
status = StatusView.render("show.json", %{activity: note})
status = StatusView.render("show.json", %{activity: note})