'to_email' => $importer['email'],
'uid' => $importer['uid'],
'item' => $datarray,
- //'link' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $message_id,
- 'link' => $a->get_baseurl().'/display/'.$datarray['guid'],
+ 'link' => $a->get_baseurl().'/display/'.urlencode($datarray['guid']),
'source_name' => $datarray['author-name'],
'source_link' => $datarray['author-link'],
'source_photo' => $datarray['author-avatar'],
$ulink = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]';
$alink = '[url=' . $parent_item['author-link'] . ']' . $parent_item['author-name'] . '[/url]';
//$plink = '[url=' . $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $parent_item['id'] . ']' . $post_type . '[/url]';
- $plink = '[url='.$a->get_baseurl().'/display/'.$guid.']'.$post_type.'[/url]';
+ $plink = '[url='.$a->get_baseurl().'/display/'.urlencode($guid).']'.$post_type.'[/url]';
$arr['body'] = sprintf( $bodyverb, $ulink, $alink, $plink );
$arr['app'] = 'Diaspora';
if ($arr['plink'] == "") {
$a = get_app();
- $arr['plink'] = $a->get_baseurl().'/display/'.$arr['guid'];
+ $arr['plink'] = $a->get_baseurl().'/display/'.urlencode($arr['guid']);
}
if ($arr['network'] == "") {
'to_email' => $u[0]['email'],
'uid' => $u[0]['uid'],
'item' => $item[0],
- //'link' => $a->get_baseurl().'/display/'.$u[0]['nickname'].'/'.$current_post,
- 'link' => $a->get_baseurl().'/display/'.$arr['guid'],
+ 'link' => $a->get_baseurl().'/display/'.urlencode($arr['guid']),
'source_name' => $item[0]['author-name'],
'source_link' => $item[0]['author-link'],
'source_photo' => $item[0]['author-avatar'],
'to_email' => $u[0]['email'],
'uid' => $u[0]['uid'],
'item' => $item,
- //'link' => $a->get_baseurl() . '/display/' . $u[0]['nickname'] . '/' . $item['id'],
- 'link' => $a->get_baseurl() . '/display/'.get_item_guid($item['id']),
+ 'link' => $a->get_baseurl() . '/display/'.urlencode(get_item_guid($item['id'])),
'source_name' => $item['author-name'],
'source_link' => $item['author-link'],
'source_photo' => $photo,
'to_email' => $importer['email'],
'uid' => $importer['importer_uid'],
'item' => $datarray,
- //'link' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $posted_id,
- 'link' => $a->get_baseurl().'/display/'.get_item_guid($posted_id),
+ 'link' => $a->get_baseurl().'/display/'.urlencode(get_item_guid($posted_id)),
'source_name' => stripslashes($datarray['author-name']),
'source_link' => $datarray['author-link'],
'source_photo' => ((link_compare($datarray['author-link'],$importer['url']))
'to_email' => $importer['email'],
'uid' => $importer['importer_uid'],
'item' => $datarray,
- //'link' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $posted_id,
- 'link' => $a->get_baseurl().'/display/'.get_item_guid($posted_id),
+ 'link' => $a->get_baseurl().'/display/'.urlencode(get_item_guid($posted_id)),
'source_name' => stripslashes($datarray['author-name']),
'source_link' => $datarray['author-link'],
'source_photo' => ((link_compare($datarray['author-link'],$importer['url']))
'to_email' => $importer['email'],
'uid' => $importer['importer_uid'],
'item' => $datarray,
- //'link' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $posted_id,
- 'link' => $a->get_baseurl().'/display/'.get_item_guid($posted_id),
+ 'link' => $a->get_baseurl().'/display/'.urlencode(get_item_guid($posted_id)),
'source_name' => stripslashes($datarray['author-name']),
'source_link' => $datarray['author-link'],
'source_photo' => ((link_compare($datarray['author-link'],$importer['url']))
'to_email' => $user['email'],
'uid' => $user['uid'],
'item' => $datarray,
- //'link' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id,
- 'link' => $a->get_baseurl().'/display/'.$datarray['guid'],
+ 'link' => $a->get_baseurl().'/display/'.urlencode($datarray['guid']),
'source_name' => $datarray['author-name'],
'source_link' => $datarray['author-link'],
'source_photo' => $datarray['author-avatar'],
'to_email' => $user['email'],
'uid' => $user['uid'],
'item' => $datarray,
- //'link' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id,
- 'link' => $a->get_baseurl().'/display/'.$datarray['guid'],
+ 'link' => $a->get_baseurl().'/display/'.urlencode($datarray['guid']),
'source_name' => $datarray['author-name'],
'source_link' => $datarray['author-link'],
'source_photo' => $datarray['author-avatar'],
WHERE `id` = %d",
intval($parent),
dbesc(($parent == $post_id) ? $uri : $parent_item['uri']),
- //dbesc($a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id),
- dbesc($a->get_baseurl().'/display/'.$datarray['guid']),
+ dbesc($a->get_baseurl().'/display/'.urlencode($datarray['guid'])),
dbesc(datetime_convert()),
intval($post_id)
);
update_thread($parent);
$datarray['id'] = $post_id;
- //$datarray['plink'] = $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id;
- $datarray['plink'] = $a->get_baseurl().'/display/'.$datarray['guid'];
+ $datarray['plink'] = $a->get_baseurl().'/display/'.urlencode($datarray['guid']);
call_hooks('post_local_end', $datarray);