forked from AkkomaGang/akkoma
Synchronize reaction notification text with PleromaFE's style
This commit is contained in:
parent
5d0bc5e028
commit
499faa82f6
2 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ def format_body(
|
||||||
_object,
|
_object,
|
||||||
_mastodon_type
|
_mastodon_type
|
||||||
) do
|
) do
|
||||||
"@#{actor.nickname} has reacted with #{content}"
|
"@#{actor.nickname} reacted with #{content}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def format_body(
|
def format_body(
|
||||||
|
|
|
@ -196,7 +196,7 @@ test "renders title and body for pleroma:emoji_reaction activity" do
|
||||||
object = Object.normalize(activity)
|
object = Object.normalize(activity)
|
||||||
|
|
||||||
assert Impl.format_body(%{activity: activity, type: "pleroma:emoji_reaction"}, user, object) ==
|
assert Impl.format_body(%{activity: activity, type: "pleroma:emoji_reaction"}, user, object) ==
|
||||||
"@Bob has reacted with 👍"
|
"@Bob reacted with 👍"
|
||||||
|
|
||||||
assert Impl.format_title(%{activity: activity, type: "pleroma:emoji_reaction"}) ==
|
assert Impl.format_title(%{activity: activity, type: "pleroma:emoji_reaction"}) ==
|
||||||
"New Reaction"
|
"New Reaction"
|
||||||
|
|
Loading…
Reference in a new issue