Synchronize reaction notification text with PleromaFE's style
authorMark Felder <feld@FreeBSD.org>
Tue, 17 Nov 2020 19:51:37 +0000 (19:51 +0000)
committerMark Felder <feld@FreeBSD.org>
Tue, 17 Nov 2020 20:22:24 +0000 (20:22 +0000)
lib/pleroma/web/push/impl.ex
test/pleroma/web/push/impl_test.exs

index f91cb1d40718eabcebbceb57139935dcc30a2511..82152dffa1f324adb839ba36fe4443e8a65dd487 100644 (file)
@@ -155,7 +155,7 @@ defmodule Pleroma.Web.Push.Impl do
         _object,
         _mastodon_type
       ) do
-    "@#{actor.nickname} has reacted with #{content}"
+    "@#{actor.nickname} reacted with #{content}"
   end
 
   def format_body(
index 2575c76d670c9cebca72c5d211f6c63c2638e838..2a4a8fd06269e199112c86458d213a46b31deef1 100644 (file)
@@ -196,7 +196,7 @@ defmodule Pleroma.Web.Push.ImplTest do
     object = Object.normalize(activity)
 
     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"}) ==
              "New Reaction"