Merge https://github.com/friendica/red into pending_merge
This commit is contained in:
commit
7d0e0366b9
@ -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
|
||||||
|
@ -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> <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> <a href="/sharedwithme/' . $rr['id'] . '/drop" onclick="return confirmDelete();"><i class="icon-trash drop-icons"></i></a><br><br>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user