]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
Don't trust local HTML either
[quix0rs-gnu-social.git] / lib / util.php
index 7ce75e0fc0430360b6d264c87b15c98b66cfc861..7ebbf42cf601f58feed5b75ed3af1e3f3486ece1 100644 (file)
@@ -687,7 +687,7 @@ function common_get_attentions($text, Profile $sender, Notice $parent=null)
     $atts = array();
     foreach ($mentions as $mention) {
         foreach ($mention['mentioned'] as $mentioned) {
-            $atts[$mentioned->getUri()] = $mentioned->isGroup() ? ActivityObject::GROUP : ActivityObject::PERSON;
+            $atts[$mentioned->getUri()] = $mentioned->getObjectType();
         }
     }
     if ($parent instanceof Notice) {