]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge remote-tracking branch 'origin/1.0.x' into 1.0.x
authorEvan Prodromou <evan@status.net>
Thu, 1 Sep 2011 15:30:24 +0000 (11:30 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 1 Sep 2011 15:30:24 +0000 (11:30 -0400)
lib/activity.php
plugins/Activity/ActivityPlugin.php

index 9dbb0e2ee0029b845f5ca6464e519812f30ac534..5234a54c03d9221ffb49e53a81bf9aa5bc905c15 100644 (file)
@@ -570,18 +570,6 @@ class Activity
 
         if ($author) {
             $this->actor->outputTo($xs, 'author');
-
-            // XXX: Remove <activity:actor> ASAP! Author information
-            // has been moved to the author element in the Activity
-            // Streams spec. We're outputting actor only for backward
-            // compatibility with clients that can only parse
-            // activities based on older versions of the spec.
-
-            $depMsg = 'Deprecation warning: activity:actor is present '
-                . 'only for backward compatibility. It will be '
-                . 'removed in the next version of StatusNet.';
-            $xs->comment($depMsg);
-            $this->actor->outputTo($xs, 'activity:actor');
         }
 
         if ($this->verb != ActivityVerb::POST || count($this->objects) != 1 || $tag != 'entry') {
index b3c38178587d1bd21b5bce2e331f6b18f59651ed..5801c194a6de99b9371f47e8eab091857a65ff5f 100644 (file)
@@ -374,7 +374,8 @@ class ActivityPlugin extends Plugin
             if (!empty($fave)) {
                 $notice = Notice::staticGet('id', $fave->notice_id);
                 if (!empty($notice)) {
-                    $target = $notice->asActivity();
+                    $cur = common_current_user();
+                    $target = $notice->asActivity($cur);
                     if ($target->verb == ActivityVerb::POST) {
                         // "I like the thing you posted"
                         $activity->objects = $target->objects;