]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
BBCode - fixed syntax error
[friendica.git] / mod / wall_attach.php
index 523bd2be229bcd12eda6a514019fb6abf7134f49..c4ee33bd18f97468b614bc5c598db8fad5091688 100644 (file)
@@ -6,12 +6,9 @@
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
-use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Model\Attach;
-use Friendica\Model\Contact;
-use Friendica\Util\DateTimeFormat;
-use Friendica\Util\Mimetype;
+use Friendica\Model\User;
 use Friendica\Util\Strings;
 
 function wall_attach_post(App $a) {
@@ -41,12 +38,10 @@ function wall_attach_post(App $a) {
        }
 
        $can_post  = false;
-       $visitor   = 0;
 
        $page_owner_uid   = $r[0]['uid'];
        $page_owner_cid   = $r[0]['id'];
-       $page_owner_nick  = $r[0]['nickname'];
-       $community_page   = (($r[0]['page-flags'] == Contact::PAGE_COMMUNITY) ? true : false);
+       $community_page   = (($r[0]['page-flags'] == User::PAGE_FLAGS_COMMUNITY) ? true : false);
 
        if ((local_user()) && (local_user() == $page_owner_uid)) {
                $can_post = true;
@@ -71,7 +66,6 @@ function wall_attach_post(App $a) {
 
                                if (DBA::isResult($r)) {
                                        $can_post = true;
-                                       $visitor = $contact_id;
                                }
                        }
                }