]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activity.php
updated and moved jquery-cookie
[quix0rs-gnu-social.git] / lib / activity.php
index cd2383808d3fb3a0cfa5fc425c0af88c0b1b751a..7546e2cd432c2fc6f8f82c6ab0402d3cab8e95ef 100644 (file)
@@ -389,9 +389,10 @@ class Activity
 
             if ($object instanceof Activity) {
                 // Sharing a post activity is more like sharing the original object
-                if ($this->verb == 'share' && $object->verb == 'post') {
+                if (ActivityVerb::canonical($this->verb) == ActivityVerb::canonical(ActivityVerb::SHARE) &&
+                    ActivityVerb::canonical($object->verb) == ActivityVerb::canonical(ActivityVerb::POST)) {
                     // XXX: Here's one for the obfuscation record books
-                    $object = $object->object;
+                    $object = $object->objects[0];
                 }
             }