]> git.mxchange.org Git - friendica.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 7 Jan 2024 06:40:51 +0000 (07:40 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Jun 2025 20:57:19 +0000 (22:57 +0200)
- restored (maybe due to bad rebasing)
- replaced double-quotes with single

src/Content/Nav.php
src/Module/Conversation/Channel.php
src/Worker/Cron.php

index 4bf6767a30ed33518431dca10eff8b4798f5ac82..695d32ffddac76772f868ca73152bb62e5239443 100644 (file)
@@ -286,7 +286,6 @@ class Nav
                }
 
                if ($this->session->getLocalUserId()) {
-                       $nav['channel'] = ['channel', $this->l10n->t('Channels'), '', $this->l10n->t('Current posts, filtered by several rules')];
                        $nav['calendar'] = ['calendar', $this->l10n->t('Calendar'), '', $this->l10n->t('Calendar')];
                }
 
index e07f1c33cffc9031404a45daa82b48cd7be7ab34..3187346c4f41b338212963c4f98f330abf65cf79 100644 (file)
@@ -78,7 +78,7 @@ class Channel extends Timeline
 
                $this->parseRequest($request);
 
-               $t = Renderer::getMarkupTemplate("community.tpl");
+               $t = Renderer::getMarkupTemplate('community.tpl');
                $o = Renderer::replaceMacros($t, [
                        '$content' => '',
                        '$header'  => '',
@@ -89,9 +89,10 @@ class Channel extends Timeline
                        $o .= Renderer::replaceMacros($tpl, ['$reload_uri' => $this->args->getQueryString()]);
                }
 
-               if (empty($request['mode']) || ($request['mode'] != 'raw')) {
-                       $tabs = $this->getTabArray($this->timeline->getChannelsForUser($this->session->getLocalUserId()), 'channel');
-                       $tabs = array_merge($tabs, $this->getTabArray($this->timeline->getCommunities(true), 'channel'));
+               if (!$this->raw) {
+                       $tabs = $this->getTabArray($this->channel->getTimelines($this->session->getLocalUserId()), 'channel');
+                       $tabs = array_merge($tabs, $this->getTabArray($this->channelRepository->selectByUid($this->session->getLocalUserId()), 'channel'));
+                       $tabs = array_merge($tabs, $this->getTabArray($this->community->getTimelines(true), 'channel'));
 
                        $tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
                        $o .= Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs, '$more' => $this->l10n->t('More')]);
index 0702fd0f6f443b06d234a13aa6d697e2e413adea..cf0529c8b4ce5a42cf980b11c30afb9bc9ea5a07 100644 (file)
@@ -135,7 +135,7 @@ class Cron
                        DBA::close($users);
 
                        // Update contact relations for our users
-                       $users = DBA::select('user', ['uid'], ["NOT `account_expired` AND NOT `account_removed` AND `uid` > ?", 0]);
+                       $users = DBA::select('user', ['uid'], ["`verified` AND NOT `blocked` AND NOT `account_removed` AND NOT `account_expired` AND `uid` > ?", 0]);
                        while ($user = DBA::fetch($users)) {
                                Worker::add(Worker::PRIORITY_LOW, 'ContactDiscoveryForUser', $user['uid']);
                        }