Allow reacting with remote emoji when they exist on the post (#200)
[akkoma] / lib / pleroma / web / activity_pub / object_validators / emoji_react_validator.ex
index 306a57a93bf23740a0ada1501c275ac9e6a86963..6109a0355e93f12a32dafd9ff0877c6e55be3a03 100644 (file)
@@ -13,7 +13,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.EmojiReactValidator do
   import Pleroma.Web.ActivityPub.ObjectValidators.CommonValidations
 
   @primary_key false
-  @emoji_regex ~r/:[A-Za-z0-9_-]+:/
+  @emoji_regex ~r/:[A-Za-z0-9_-]+(@.+)?:/
 
   embedded_schema do
     quote do