]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
BBCode - fixed syntax error
[friendica.git] / mod / wall_attach.php
index fb665ac2fa49c56518dcf90f0efb8f3d8fbd7b8d..c4ee33bd18f97468b614bc5c598db8fad5091688 100644 (file)
@@ -8,7 +8,7 @@ use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Database\DBA;
 use Friendica\Model\Attach;
-use Friendica\Model\Contact;
+use Friendica\Model\User;
 use Friendica\Util\Strings;
 
 function wall_attach_post(App $a) {
@@ -41,7 +41,7 @@ function wall_attach_post(App $a) {
 
        $page_owner_uid   = $r[0]['uid'];
        $page_owner_cid   = $r[0]['id'];
-       $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;