}
$nick = (($a->argc > 1) ? $a->argv[1] : '');
- $profiledata = [];
if ($a->argc == 3) {
if (substr($a->argv[2], -5) == '.atom') {
}
if ($item["id"] != $item["parent"]) {
- $item = Item::selectFirstForUser(local_user(), $fields, ['id' => $item["parent"]]);
+ $item = Item::selectFirstForUser($item_user, $fields, ['id' => $item["parent"]]);
}
$profiledata = display_fetchauthor($a, $item);
}
if (!$skip) {
- $author = "";
preg_match("/author='(.*?)'/ism", $attributes, $matches);
if (!empty($matches[1])) {
$profiledata["name"] = html_entity_decode($matches[1],ENT_QUOTES,'UTF-8');
if (!empty($matches[1])) {
$profiledata["name"] = html_entity_decode($matches[1],ENT_QUOTES,'UTF-8');
}
- $profile = "";
preg_match("/profile='(.*?)'/ism", $attributes, $matches);
if (!empty($matches[1])) {
$profiledata["url"] = $matches[1];
if (!empty($matches[1])) {
$profiledata["url"] = $matches[1];
}
- $avatar = "";
preg_match("/avatar='(.*?)'/ism", $attributes, $matches);
if (!empty($matches[1])) {
$profiledata["photo"] = $matches[1];
return;
}
- require_once 'include/conversation.php';
-
$o = '';
if ($update) {
$parent = Item::selectFirst(['uid'], ['uri' => $item_parent_uri, 'wall' => true]);
if (DBA::isResult($parent)) {
- $a->profile['uid'] = $parent['uid'];
- $a->profile['profile_uid'] = $parent['uid'];
+ $a->profile['uid'] = defaults($a->profile, 'uid', $parent['uid']);
+ $a->profile['profile_uid'] = defaults($a->profile, 'profile_uid', $parent['uid']);
$is_remote_contact = Contact::isFollower(remote_user(), $a->profile['profile_uid']);
}
}
header("Content-type: application/atom+xml");
echo $xml;
- killme();
+ exit();
}