From: Michael Date: Fri, 8 Sep 2017 07:00:38 +0000 (+0000) Subject: Remote self should now finally trigger all addons X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c6d83acd92e9058f54d61e991369de5e0ed3801;p=friendica.git Remote self should now finally trigger all addons --- diff --git a/include/items.php b/include/items.php index eb9f44c3eb..df13202710 100644 --- a/include/items.php +++ b/include/items.php @@ -1598,6 +1598,10 @@ function item_is_remote_self($contact, &$datarray) { // Trigger automatic reactions for addons $datarray['api_source'] = true; + // We have to tell the hooks who we are - this really should be improved + $_SESSION["authenticated"] = true; + $_SESSION["uid"] = $contact['uid']; + unset($datarray['created']); unset($datarray['edited']); }