Improvements for channel counter

This commit is contained in:
Michael 2024-03-25 07:20:41 +00:00
parent 53a2fb648f
commit 0fde21ff28
4 changed files with 46 additions and 31 deletions

View file

@ -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())) {