Merge pull request #155 from tobiasd/pumpio_newobj
pumpio: PHP fixes for 5.4 not warn all time
This commit is contained in:
commit
b4dc70b48a
BIN
pumpio.tgz
BIN
pumpio.tgz
Binary file not shown.
|
@ -1080,14 +1080,17 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$reply = new stdClass;
|
||||||
$reply->verb = "note";
|
$reply->verb = "note";
|
||||||
$reply->cc = $post->cc;
|
$reply->cc = $post->cc;
|
||||||
$reply->to = $post->to;
|
$reply->to = $post->to;
|
||||||
|
$reply->object = new stdClass;
|
||||||
$reply->object->objectType = $post->object->inReplyTo->objectType;
|
$reply->object->objectType = $post->object->inReplyTo->objectType;
|
||||||
$reply->object->content = $post->object->inReplyTo->content;
|
$reply->object->content = $post->object->inReplyTo->content;
|
||||||
$reply->object->id = $post->object->inReplyTo->id;
|
$reply->object->id = $post->object->inReplyTo->id;
|
||||||
$reply->actor = $post->object->inReplyTo->author;
|
$reply->actor = $post->object->inReplyTo->author;
|
||||||
$reply->url = $post->object->inReplyTo->url;
|
$reply->url = $post->object->inReplyTo->url;
|
||||||
|
$reply->generator = new stdClass;
|
||||||
$reply->generator->displayName = "pumpio";
|
$reply->generator->displayName = "pumpio";
|
||||||
$reply->published = $post->object->inReplyTo->published;
|
$reply->published = $post->object->inReplyTo->published;
|
||||||
$reply->received = $post->object->inReplyTo->updated;
|
$reply->received = $post->object->inReplyTo->updated;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user