git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit dbc6d607 authored by Evan Prodromou's avatar Evan Prodromou

Merge remote-tracking branch 'origin/1.0.x' into 1.0.x

parents b53391e5 5f441842
......@@ -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') {
......
......@@ -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;
......
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