]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Merge branch 'develop' into task/fix-scrutinizer-issues
[friendica.git] / mod / community.php
index 1f5f848cc0641fc706c896ca9d3c655695379abf..781f31302c2253b35c1249e2dba16c84df91f86d 100644 (file)
@@ -87,6 +87,22 @@ function community_content(App $a, $update = 0)
                $o .= replace_macros($tab_tpl, array('$tabs' => $tabs));
 
                nav_set_selected('community');
+
+               // We need the editor here to be able to reshare an item.
+               if (local_user()) {
+                       $x = array(
+                               'is_owner' => true,
+                               'allow_location' => $a->user['allow_location'],
+                               'default_location' => $a->user['default-location'],
+                               'nickname' => $a->user['nickname'],
+                               'lockstate' => (is_array($a->user) && (strlen($a->user['allow_cid']) || strlen($a->user['allow_gid']) || strlen($a->user['deny_cid']) || strlen($a->user['deny_gid'])) ? 'lock' : 'unlock'),
+                               'acl' => populate_acl($a->user, true),
+                               'bang' => '',
+                               'visitor' => 'block',
+                               'profile_uid' => local_user(),
+                       );
+                       $o .= status_editor($a, $x, 0, true);
+               }
        }
 
        if (Config::get('system', 'comment_public')) {