- $o .= replace_macros($tab_tpl, array('$tabs' => $tabs));
-
- nav_set_selected('community');
- }
-
- if (Config::get('system', 'comment_public')) {
- // check if we serve a mobile device and get the user settings
- // accordingly
- if ($a->is_mobile) {
- $itemspage_network = PConfig::get(local_user(),'system','itemspage_mobile_network', 20);
- } else {
- $itemspage_network = PConfig::get(local_user(),'system','itemspage_network', 40);
+ $o .= replace_macros($tab_tpl, ['$tabs' => $tabs]);
+
+ Nav::setSelected('community');
+
+ // We need the editor here to be able to reshare an item.
+ if (local_user()) {
+ $x = [
+ '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' => ACL::getFullSelectorHTML($a->user, true),
+ 'bang' => '',
+ 'visitor' => 'block',
+ 'profile_uid' => local_user(),
+ ];
+ $o .= status_editor($a, $x, 0, true);