]> git.mxchange.org Git - friendica.git/blobdiff - mod/subthread.php
Merge pull request #3423 from Hypolite/improvement/move-app-to-src-2
[friendica.git] / mod / subthread.php
index b85f461dcf85c291ba939a434648eb68b7bd52b7..0745fc0eef4948a204f61581aedc7994a0e045c5 100644 (file)
@@ -1,13 +1,14 @@
 <?php
 
+use Friendica\App;
+
 require_once('include/security.php');
 require_once('include/bbcode.php');
 require_once('include/items.php');
 
-
 function subthread_content(App $a) {
 
-       if (! local_user() && ! remote_user()) {
+       if(! local_user() && ! remote_user()) {
                return;
        }
 
@@ -20,7 +21,7 @@ function subthread_content(App $a) {
                dbesc($item_id)
        );
 
-       if (! $item_id || (! dbm::is_result($r))) {
+       if(! $item_id || (! dbm::is_result($r))) {
                logger('subthread: no item ' . $item_id);
                return;
        }
@@ -29,13 +30,13 @@ function subthread_content(App $a) {
 
        $owner_uid = $item['uid'];
 
-       if (! can_write_wall($a,$owner_uid)) {
+       if(! can_write_wall($a,$owner_uid)) {
                return;
        }
 
        $remote_owner = null;
 
-       if (! $item['wall']) {
+       if(! $item['wall']) {
                // The top level post may have been written by somebody on another system
                $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
                        intval($item['contact-id']),