fix leak
This commit is contained in:
parent
1507ec37a4
commit
7f19018cd4
|
@ -2206,7 +2206,7 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) {
|
||||||
$images = array();
|
$images = array();
|
||||||
|
|
||||||
$title = $item['title'];
|
$title = $item['title'];
|
||||||
$body = fix_private_photos($item['body'], $owner['uid'], $item, $contact['id']);
|
$body = $item['body'];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// We're trying to match Diaspora's split message/photo protocol but
|
// We're trying to match Diaspora's split message/photo protocol but
|
||||||
|
@ -2328,7 +2328,9 @@ function diaspora_send_followup($item,$owner,$contact,$public_batch = false) {
|
||||||
$myaddr = $owner['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
|
$myaddr = $owner['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3);
|
||||||
// $theiraddr = $contact['addr'];
|
// $theiraddr = $contact['addr'];
|
||||||
|
|
||||||
// Diaspora doesn't support threaded comments
|
// Diaspora doesn't support threaded comments, but some
|
||||||
|
// versions of Diaspora (i.e. Diaspora-pistos) support
|
||||||
|
// likes on comments
|
||||||
if($item['verb'] === ACTIVITY_LIKE && $item['thr-parent']) {
|
if($item['verb'] === ACTIVITY_LIKE && $item['thr-parent']) {
|
||||||
$p = q("select guid, type, uri, `parent-uri` from item where uri = '%s' limit 1",
|
$p = q("select guid, type, uri, `parent-uri` from item where uri = '%s' limit 1",
|
||||||
dbesc($item['thr-parent'])
|
dbesc($item['thr-parent'])
|
||||||
|
@ -2404,7 +2406,9 @@ function diaspora_send_relay($item,$owner,$contact,$public_batch = false) {
|
||||||
$body = $item['body'];
|
$body = $item['body'];
|
||||||
$text = html_entity_decode(bb2diaspora($body));
|
$text = html_entity_decode(bb2diaspora($body));
|
||||||
|
|
||||||
// Diaspora doesn't support threaded comments
|
// Diaspora doesn't support threaded comments, but some
|
||||||
|
// versions of Diaspora (i.e. Diaspora-pistos) support
|
||||||
|
// likes on comments
|
||||||
if($item['verb'] === ACTIVITY_LIKE && $item['thr-parent']) {
|
if($item['verb'] === ACTIVITY_LIKE && $item['thr-parent']) {
|
||||||
$p = q("select guid, type, uri, `parent-uri` from item where uri = '%s' limit 1",
|
$p = q("select guid, type, uri, `parent-uri` from item where uri = '%s' limit 1",
|
||||||
dbesc($item['thr-parent'])
|
dbesc($item['thr-parent'])
|
||||||
|
|
Loading…
Reference in a new issue