diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-10-23 14:19:45 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-10-23 14:19:45 +0200 |
commit | 1006ebbf61db55d6e5a013aa17b4ef58ebd409ca (patch) | |
tree | 4d531ac00341af9090d9b9f692855e3f973a081d /include/items.php | |
parent | 168ec536866b16c5d9bad6551ebf4a38b11e440f (diff) | |
parent | e530476e6c5d2319f3a0a09dfe73ec181e923325 (diff) | |
download | volse-hubzilla-1006ebbf61db55d6e5a013aa17b4ef58ebd409ca.tar.gz volse-hubzilla-1006ebbf61db55d6e5a013aa17b4ef58ebd409ca.tar.bz2 volse-hubzilla-1006ebbf61db55d6e5a013aa17b4ef58ebd409ca.zip |
Merge branch 'dev' into containers
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/include/items.php b/include/items.php index 16522b0a6..2aed53b3c 100644 --- a/include/items.php +++ b/include/items.php @@ -5148,25 +5148,19 @@ function copy_of_pubitem($channel, $mid) { return $item[0]; } - - $r = q("select * from item where parent_mid = (select parent_mid from item where mid = '%s' and uid = %d ) order by id ", + $r = q("select * from item where parent_mid = (select parent_mid from item where mid = '%s' and uid = %d) and uid = %d order by id ", dbesc($mid), + intval($syschan['channel_id']), intval($syschan['channel_id']) ); if($r) { $items = fetch_post_tags($r,true); foreach($items as $rv) { - $d = q("select id from item where mid = '%s' and uid = %d limit 1", - dbesc($rv['mid']), - intval($channel['channel_id']) - ); - if($d) { - continue; - } unset($rv['id']); unset($rv['parent']); + $rv['aid'] = $channel['channel_account_id']; $rv['uid'] = $channel['channel_id']; $rv['item_wall'] = 0; @@ -5180,6 +5174,7 @@ function copy_of_pubitem($channel, $mid) { } } + return $result; } |