$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']);
}
$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;
}