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 'origin/develop' into global-status-expiration
[akkoma]
/
test
/
web
/
push
/
impl_test.exs
diff --git
a/test/web/push/impl_test.exs
b/test/web/push/impl_test.exs
index 57b35061ab4bb8db3503fabdab68112d83147992..a826b24c90f110a28ef929df4ec9efbb550d13d9 100644
(file)
--- a/
test/web/push/impl_test.exs
+++ b/
test/web/push/impl_test.exs
@@
-55,7
+55,7
@@
defmodule Pleroma.Web.Push.ImplTest do
data: %{alerts: %{"follow" => true, "mention" => false}}
)
data: %{alerts: %{"follow" => true, "mention" => false}}
)
- {:ok, activity} = CommonAPI.post(user, %{
"status" =>
"<Lorem ipsum dolor sit amet."})
+ {:ok, activity} = CommonAPI.post(user, %{
status:
"<Lorem ipsum dolor sit amet."})
notif =
insert(:notification,
notif =
insert(:notification,
@@
-111,7
+111,7
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
- "status" =>
+ status:
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
@@
-147,11
+147,11
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
- "status" =>
+ status:
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
- {:ok, announce_activity
, _
} = CommonAPI.repeat(activity.id, user)
+ {:ok, announce_activity} = CommonAPI.repeat(activity.id, user)
object = Object.normalize(activity)
assert Impl.format_body(%{activity: announce_activity}, user, object) ==
object = Object.normalize(activity)
assert Impl.format_body(%{activity: announce_activity}, user, object) ==
@@
-166,7
+166,7
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
- "status" =>
+ status:
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
@@
-184,8
+184,8
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
-
"visibility" =>
"direct",
-
"status" =>
"This is just between you and me, pal"
+
visibility:
"direct",
+
status:
"This is just between you and me, pal"
})
assert Impl.format_title(%{activity: activity}) ==
})
assert Impl.format_title(%{activity: activity}) ==
@@
-199,8
+199,8
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
-
"visibility" =>
"direct",
-
"status" =>
"<Lorem ipsum dolor sit amet."
+
visibility:
"direct",
+
status:
"<Lorem ipsum dolor sit amet."
})
notif = insert(:notification, user: user2, activity: activity)
})
notif = insert(:notification, user: user2, activity: activity)
@@
-214,8
+214,8
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
-
"visibility" =>
"public",
-
"status" =>
"<Lorem ipsum dolor sit amet."
+
visibility:
"public",
+
status:
"<Lorem ipsum dolor sit amet."
})
notif = insert(:notification, user: user2, activity: activity)
})
notif = insert(:notification, user: user2, activity: activity)
@@
-245,8
+245,8
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
-
"visibility" =>
"direct",
- "status" =>
+
visibility:
"direct",
+ status:
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
@@
-263,8
+263,8
@@
defmodule Pleroma.Web.Push.ImplTest do
{:ok, activity} =
CommonAPI.post(user, %{
{:ok, activity} =
CommonAPI.post(user, %{
-
"visibility" =>
"public",
- "status" =>
+
visibility:
"public",
+ status:
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})
"<span>Lorem ipsum dolor sit amet</span>, consectetur :firefox: adipiscing elit. Fusce sagittis finibus turpis."
})