mirror of
https://github.com/friendica/friendica
synced 2025-04-24 04:30:11 +00:00
Improvements for channel counter
This commit is contained in:
parent
53a2fb648f
commit
0fde21ff28
4 changed files with 46 additions and 31 deletions
|
@ -28,8 +28,12 @@ class Network extends NetworkModule
|
|||
{
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
if (!$this->session->getLocalUserId()) {
|
||||
System::exit();
|
||||
}
|
||||
|
||||
if (!empty($request['ping'])) {
|
||||
$request = $this->session->get('network-request');
|
||||
$request = $this->getTimelineRequestBySession();
|
||||
}
|
||||
|
||||
if (!isset($request['p']) || !isset($request['item'])) {
|
||||
|
@ -42,10 +46,6 @@ class Network extends NetworkModule
|
|||
System::httpExit('');
|
||||
}
|
||||
|
||||
if (empty($request['ping'])) {
|
||||
$this->session->set('network-request', $request);
|
||||
}
|
||||
|
||||
$this->itemsPerPage = 100;
|
||||
|
||||
if ($this->channel->isTimeline($this->selectedTab) || $this->userDefinedChannel->isTimeline($this->selectedTab, $this->session->getLocalUserId())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue