This is a better place

2022.09-rc
Michael 2017-09-08 07:08:06 +00:00
rodzic 3c6d83acd9
commit a5a4f53287
1 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -1595,13 +1595,6 @@ function item_is_remote_self($contact, &$datarray) {
$datarray['author-link'] = $datarray['owner-link'];
$datarray['author-avatar'] = $datarray['owner-avatar'];
// 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']);
}
@ -1627,6 +1620,13 @@ function item_is_remote_self($contact, &$datarray) {
$datarray["app"] = "Feed";
}
// 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'];
return true;
}