Increase web push character limit for the body
This commit is contained in:
parent
c1b84edefc
commit
8468d78882
@ -41,7 +41,7 @@ defmodule Pleroma.Web.Push.ImplTest do
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
@api_key "BASgACIHpN1GYgzSRp"
|
@api_key "BASgACIHpN1GYgzSRp"
|
||||||
@message "@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis fini..."
|
@message "@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis finibus turpis."
|
||||||
|
|
||||||
test "performs sending notifications" do
|
test "performs sending notifications" do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
@ -129,7 +129,7 @@ defmodule Pleroma.Web.Push.ImplTest do
|
|||||||
user,
|
user,
|
||||||
object
|
object
|
||||||
) ==
|
) ==
|
||||||
"@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis fini..."
|
"@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis finibus turpis."
|
||||||
|
|
||||||
assert Impl.format_title(%{activity: activity, type: "mention"}) ==
|
assert Impl.format_title(%{activity: activity, type: "mention"}) ==
|
||||||
"New Mention"
|
"New Mention"
|
||||||
@ -161,7 +161,7 @@ defmodule Pleroma.Web.Push.ImplTest do
|
|||||||
object = Object.normalize(activity, fetch: false)
|
object = Object.normalize(activity, fetch: false)
|
||||||
|
|
||||||
assert Impl.format_body(%{activity: announce_activity}, user, object) ==
|
assert Impl.format_body(%{activity: announce_activity}, user, object) ==
|
||||||
"@#{user.nickname} repeated: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis fini..."
|
"@#{user.nickname} repeated: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis finibus turpis."
|
||||||
|
|
||||||
assert Impl.format_title(%{activity: announce_activity, type: "reblog"}) ==
|
assert Impl.format_title(%{activity: announce_activity, type: "reblog"}) ==
|
||||||
"New Repeat"
|
"New Repeat"
|
||||||
@ -365,7 +365,7 @@ defmodule Pleroma.Web.Push.ImplTest do
|
|||||||
|
|
||||||
assert Impl.build_content(notif, actor, object) == %{
|
assert Impl.build_content(notif, actor, object) == %{
|
||||||
body:
|
body:
|
||||||
"@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis fini...",
|
"@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis finibus turpis.",
|
||||||
title: "New Direct Message"
|
title: "New Direct Message"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -383,7 +383,7 @@ defmodule Pleroma.Web.Push.ImplTest do
|
|||||||
|
|
||||||
assert Impl.build_content(notif, actor, object) == %{
|
assert Impl.build_content(notif, actor, object) == %{
|
||||||
body:
|
body:
|
||||||
"@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis fini...",
|
"@Bob: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sagittis finibus turpis.",
|
||||||
title: "New Mention"
|
title: "New Mention"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user