projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update mastofe paths (#95)
[akkoma]
/
test
/
pleroma
/
web
/
pleroma_api
/
views
/
chat_message_reference_view_test.exs
diff --git
a/test/pleroma/web/pleroma_api/views/chat_message_reference_view_test.exs
b/test/pleroma/web/pleroma_api/views/chat_message_reference_view_test.exs
index ae825787083603217fe6a3deea8e17892cfa0fca..6deaa21020f858c99409ced7f6cb085890483208 100644
(file)
--- a/
test/pleroma/web/pleroma_api/views/chat_message_reference_view_test.exs
+++ b/
test/pleroma/web/pleroma_api/views/chat_message_reference_view_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.PleromaAPI.ChatMessageReferenceViewTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.PleromaAPI.ChatMessageReferenceViewTest do
@@
-31,7
+31,7
@@
defmodule Pleroma.Web.PleromaAPI.ChatMessageReferenceViewTest do
chat = Chat.get(user.id, recipient.ap_id)
chat = Chat.get(user.id, recipient.ap_id)
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
cm_ref = MessageReference.for_chat_and_object(chat, object)
cm_ref = MessageReference.for_chat_and_object(chat, object)
@@
-48,7
+48,7
@@
defmodule Pleroma.Web.PleromaAPI.ChatMessageReferenceViewTest do
clear_config([:rich_media, :enabled], true)
clear_config([:rich_media, :enabled], true)
- Tesla.Mock.mock(fn
+ Tesla.Mock.mock
_global
(fn
%{url: "https://example.com/ogp"} ->
%Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/ogp.html")}
end)
%{url: "https://example.com/ogp"} ->
%Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/ogp.html")}
end)
@@
-58,7
+58,7
@@
defmodule Pleroma.Web.PleromaAPI.ChatMessageReferenceViewTest do
media_id: upload.id
)
media_id: upload.id
)
- object = Object.normalize(activity)
+ object = Object.normalize(activity
, fetch: false
)
cm_ref = MessageReference.for_chat_and_object(chat, object)
cm_ref = MessageReference.for_chat_and_object(chat, object)