projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHANGELOG: Support `poll` notification type
[akkoma]
/
test
/
pleroma
/
web
/
static_fe
/
static_fe_controller_test.exs
diff --git
a/test/pleroma/web/static_fe/static_fe_controller_test.exs
b/test/pleroma/web/static_fe/static_fe_controller_test.exs
index 2af14dfebcbe1b7c4ef5288a0a905c19fe3d978e..5752cffda5f18b1f5c8fce7acbb787ed6eea234e 100644
(file)
--- a/
test/pleroma/web/static_fe/static_fe_controller_test.exs
+++ b/
test/pleroma/web/static_fe/static_fe_controller_test.exs
@@
-7,6
+7,7
@@
defmodule Pleroma.Web.StaticFE.StaticFEControllerTest do
alias Pleroma.Activity
alias Pleroma.Web.ActivityPub.Transmogrifier
alias Pleroma.Activity
alias Pleroma.Web.ActivityPub.Transmogrifier
+ alias Pleroma.Web.ActivityPub.Utils
alias Pleroma.Web.CommonAPI
import Pleroma.Factory
alias Pleroma.Web.CommonAPI
import Pleroma.Factory
@@
-185,16
+186,16
@@
defmodule Pleroma.Web.StaticFE.StaticFEControllerTest do
test "302 for remote cached status", %{conn: conn, user: user} do
message = %{
"@context" => "https://www.w3.org/ns/activitystreams",
test "302 for remote cached status", %{conn: conn, user: user} do
message = %{
"@context" => "https://www.w3.org/ns/activitystreams",
- "to" => user.follower_address,
- "cc" => "https://www.w3.org/ns/activitystreams#Public",
"type" => "Create",
"type" => "Create",
+ "actor" => user.ap_id,
"object" => %{
"object" => %{
+ "to" => user.follower_address,
+ "cc" => "https://www.w3.org/ns/activitystreams#Public",
+ "id" => Utils.generate_object_id(),
"content" => "blah blah blah",
"type" => "Note",
"content" => "blah blah blah",
"type" => "Note",
- "attributedTo" => user.ap_id,
- "inReplyTo" => nil
- },
- "actor" => user.ap_id
+ "attributedTo" => user.ap_id
+ }
}
assert {:ok, activity} = Transmogrifier.handle_incoming(message)
}
assert {:ok, activity} = Transmogrifier.handle_incoming(message)