From f92a2539468cb2c8ec303baec0e390f6baac5ca7 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 3 Oct 2015 13:58:10 +0200 Subject: [PATCH] Bugfix: Remote self worked anymore --- include/feed.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/feed.php b/include/feed.php index 18d96e6ab..dd360a07b 100644 --- a/include/feed.php +++ b/include/feed.php @@ -106,9 +106,17 @@ function feed_import($xml,$importer,&$contact, &$hub) { $header["wall"] = 0; $header["origin"] = 0; $header["gravity"] = GRAVITY_PARENT; + $header["private"] = 2; + $header["verb"] = ACTIVITY_POST; + $header["object-type"] = ACTIVITY_OBJ_NOTE; $header["contact-id"] = $contact["id"]; + if(!strlen($contact["notify"])) { + // one way feed - no remote comment ability + $header["last-child"] = 0; + } + if (!is_object($entries)) return;