has moved to IP address -- please double check where you are logging in.

Commit 540b90db authored by Evan Prodromou's avatar Evan Prodromou

Better verb comparison

parent e502bba2
......@@ -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];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment