mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
The GUID in the link to the items has to be encoded, since it could contain special characters
This commit is contained in:
parent
087871cd8d
commit
3ec6970d09
6 changed files with 11 additions and 17 deletions
|
@ -1237,8 +1237,7 @@ function statusnet_checknotification($a, $uid, $own_url, $top_item, $postarray)
|
|||
'to_email' => $user[0]['email'],
|
||||
'uid' => $user[0]['uid'],
|
||||
'item' => $postarray,
|
||||
//'link' => $a->get_baseurl() . '/display/' . $user[0]['nickname'] . '/' . $top_item,
|
||||
'link' => $a->get_baseurl().'/display/'.get_item_guid($top_item),
|
||||
'link' => $a->get_baseurl().'/display/'.urlencode(get_item_guid($top_item)),
|
||||
'source_name' => $postarray['author-name'],
|
||||
'source_link' => $postarray['author-link'],
|
||||
'source_photo' => $postarray['author-avatar'],
|
||||
|
@ -1419,8 +1418,7 @@ function statusnet_fetchhometimeline($a, $uid) {
|
|||
'to_email' => $u[0]['email'],
|
||||
'uid' => $u[0]['uid'],
|
||||
'item' => $postarray,
|
||||
//'link' => $a->get_baseurl() . '/display/' . $u[0]['nickname'] . '/' . $item,
|
||||
'link' => $a->get_baseurl().'/display/'.get_item_guid($item),
|
||||
'link' => $a->get_baseurl().'/display/'.urlencode(get_item_guid($item)),
|
||||
'source_name' => $postarray['author-name'],
|
||||
'source_link' => $postarray['author-link'],
|
||||
'source_photo' => $postarray['author-avatar'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue