we should probably use ||
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Fri, 10 Mar 2023 18:49:08 +0000 (18:49 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Fri, 10 Mar 2023 18:49:08 +0000 (18:49 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 7081213e7be459ce15f8c2f89016db72db25616f..5c96bf060589d1ce6322dc940832ff321e87814f 100644 (file)
@@ -423,7 +423,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
         } = data,
         options
       ) do
-    if Pleroma.Emoji.is_unicode_emoji?(reaction) or Pleroma.Emoji.matches_shortcode?(reaction) do
+    if Pleroma.Emoji.is_unicode_emoji?(reaction) || Pleroma.Emoji.matches_shortcode?(reaction) do
       data
       |> Map.put("type", "EmojiReact")
       |> handle_incoming(options)