]> git.mxchange.org Git - friendica.git/commitdiff
Remote self should now finally trigger all addons
authorMichael <heluecht@pirati.ca>
Fri, 8 Sep 2017 07:00:38 +0000 (07:00 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 8 Sep 2017 07:00:38 +0000 (07:00 +0000)
include/items.php

index eb9f44c3eb050a3f9b1d403392c48680651b49f7..df132027101678e840d74a612063fc85ea90ccdc 100644 (file)
@@ -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']);
                }