mirror of
https://github.com/friendica/friendica
synced 2025-05-01 04:24:28 +02:00
Merge remote-tracking branch 'upstream/develop' into rewrites/coding-convention-split2-6-2
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
commit
4e49939421
165 changed files with 63565 additions and 40577 deletions
|
@ -45,12 +45,12 @@ function add_shadow_thread($itemid) {
|
|||
$item = $items[0];
|
||||
|
||||
// is it already a copy?
|
||||
if (($itemid == 0) OR ($item['uid'] == 0)) {
|
||||
if (($itemid == 0) || ($item['uid'] == 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Is it a visible public post?
|
||||
if (!$item["visible"] OR $item["deleted"] OR $item["moderated"] OR $item["private"]) {
|
||||
if (!$item["visible"] || $item["deleted"] || $item["moderated"] || $item["private"]) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -86,8 +86,8 @@ function add_shadow_thread($itemid) {
|
|||
|
||||
$item = q("SELECT * FROM `item` WHERE `id` = %d", intval($itemid));
|
||||
|
||||
if (count($item) AND ($item[0]["allow_cid"] == '') AND ($item[0]["allow_gid"] == '') AND
|
||||
($item[0]["deny_cid"] == '') AND ($item[0]["deny_gid"] == '')) {
|
||||
if (count($item) && ($item[0]["allow_cid"] == '') && ($item[0]["allow_gid"] == '') &&
|
||||
($item[0]["deny_cid"] == '') && ($item[0]["deny_gid"] == '')) {
|
||||
|
||||
$r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' AND `uid` = 0 LIMIT 1",
|
||||
dbesc($item['uri']));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue