X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=1486a33b429bc2de89eee738a246ec08121ee6f8;hb=e02b982f778daa7d74c1ca03981f9859a147f407;hp=c29a9b87c2cfd9ea430dc298a4544067ef0ae327;hpb=2d988be195262f5ec0a281bdef9ae17ffba8e03a;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index c29a9b87c2..1486a33b42 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -85,7 +85,7 @@ function subthread_content(&$a) { $uri = item_new_uri($a->get_hostname(),$owner_uid); $post_type = (($item['resource-id']) ? t('photo') : t('status')); - $objtype = (($item['resource-id']) ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE ); + $objtype = (($item['resource-id']) ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE ); $link = xmlify('' . "\n") ; $body = $item['body']; @@ -140,14 +140,14 @@ EOT; $arr['unseen'] = 1; $arr['last-child'] = 0; - $post_id = item_store($arr); + $post_id = item_store($arr); if(! $item['visible']) { - $r = q("UPDATE `item` SET `visible` = 1 WHERE `id` = %d AND `uid` = %d LIMIT 1", + $r = q("UPDATE `item` SET `visible` = 1 WHERE `id` = %d AND `uid` = %d", intval($item['id']), intval($owner_uid) ); - } + } $arr['id'] = $post_id;