aboutsummaryrefslogtreecommitdiffstats
path: root/mod/sharedwithme.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2015-01-22 04:57:59 +0100
committermarijus <mario@mariovavti.com>2015-01-22 04:57:59 +0100
commit3731ff97ffa9d6c98c7287458edd783823f68305 (patch)
tree8b24cfe5994924d131e9dc60f32b653ee5f77871 /mod/sharedwithme.php
parent200220ff367af9aab6b19a64ec259f5eb68efbea (diff)
downloadvolse-hubzilla-3731ff97ffa9d6c98c7287458edd783823f68305.tar.gz
volse-hubzilla-3731ff97ffa9d6c98c7287458edd783823f68305.tar.bz2
volse-hubzilla-3731ff97ffa9d6c98c7287458edd783823f68305.zip
make $links an array of links
Diffstat (limited to 'mod/sharedwithme.php')
-rw-r--r--mod/sharedwithme.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/sharedwithme.php b/mod/sharedwithme.php
index 53884788d..ff93051da 100644
--- a/mod/sharedwithme.php
+++ b/mod/sharedwithme.php
@@ -1,5 +1,6 @@
<?php
require_once('include/conversation.php');
+require_once('include/text.php');
function sharedwithme_content(&$a) {
if(! local_user()) {
@@ -105,7 +106,7 @@ function sharedwithme_content(&$a) {
if($r) {
foreach($r as $rr) {
$object = json_decode($rr['object'],true);
- $url = rawurldecode($object['link']['href']);
+ $url = rawurldecode(get_rel_link($object['link'],'alternate'));
$o .= '<a href="' . $url . '?f=&zid=' . $channel['xchan_addr'] . '">' . $url . '</a>&nbsp;<a href="/sharedwithme/' . $rr['id'] . '/drop" onclick="return confirmDelete();"><i class="icon-trash drop-icons"></i></a><br><br>';
}
}