From 540b90dbd9add21e4f0184d97bfa7f16d78c1e29 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 30 Jun 2013 12:08:11 -0400 Subject: [PATCH] Better verb comparison --- lib/activity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/activity.php b/lib/activity.php index 5074b6d205..7546e2cd43 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -389,7 +389,8 @@ 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->objects[0]; } -- 2.39.5