X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_attach.php;h=c4ee33bd18f97468b614bc5c598db8fad5091688;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=fb665ac2fa49c56518dcf90f0efb8f3d8fbd7b8d;hpb=dbc6eb5422b81c95d6e1eea63c8ace794ccd2039;p=friendica.git diff --git a/mod/wall_attach.php b/mod/wall_attach.php index fb665ac2fa..c4ee33bd18 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -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;