This commit is contained in:
friendica 2015-01-21 20:09:51 -08:00
commit 7d0e0366b9
2 changed files with 4 additions and 2 deletions

View File

@ -968,7 +968,8 @@ function file_activity($channel_id, $hash, $cloudpath, $allow_cid, $allow_gid, $
$item_flags = ITEM_WALL|ITEM_ORIGIN|ITEM_UNSEEN; $item_flags = ITEM_WALL|ITEM_ORIGIN|ITEM_UNSEEN;
$links = array( $links = array();
$links[] = array(
'rel' => 'alternate', 'rel' => 'alternate',
'type' => 'text/html', 'type' => 'text/html',
'href' => $url 'href' => $url

View File

@ -1,5 +1,6 @@
<?php <?php
require_once('include/conversation.php'); require_once('include/conversation.php');
require_once('include/text.php');
function sharedwithme_content(&$a) { function sharedwithme_content(&$a) {
if(! local_user()) { if(! local_user()) {
@ -105,7 +106,7 @@ function sharedwithme_content(&$a) {
if($r) { if($r) {
foreach($r as $rr) { foreach($r as $rr) {
$object = json_decode($rr['object'],true); $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>'; $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>';
} }
} }