Merge pull request #1923 from annando/1510-feed-remote-self
Bugfix: Remote self hadn't worked anymore since the new feed import
This commit is contained in:
commit
a3221945d0
|
@ -106,9 +106,17 @@ function feed_import($xml,$importer,&$contact, &$hub) {
|
||||||
$header["wall"] = 0;
|
$header["wall"] = 0;
|
||||||
$header["origin"] = 0;
|
$header["origin"] = 0;
|
||||||
$header["gravity"] = GRAVITY_PARENT;
|
$header["gravity"] = GRAVITY_PARENT;
|
||||||
|
$header["private"] = 2;
|
||||||
|
$header["verb"] = ACTIVITY_POST;
|
||||||
|
$header["object-type"] = ACTIVITY_OBJ_NOTE;
|
||||||
|
|
||||||
$header["contact-id"] = $contact["id"];
|
$header["contact-id"] = $contact["id"];
|
||||||
|
|
||||||
|
if(!strlen($contact["notify"])) {
|
||||||
|
// one way feed - no remote comment ability
|
||||||
|
$header["last-child"] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_object($entries))
|
if (!is_object($entries))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue