Count inbound and outbound packets

This commit is contained in:
Michael 2024-07-23 11:38:04 +00:00
parent ca5f93a4d5
commit e011b5956a
13 changed files with 63 additions and 0 deletions

View file

@ -25,6 +25,8 @@ use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
use Friendica\Core\Protocol;
use Friendica\Model\Item;
use Friendica\Model\User;
use Friendica\Module\Response;
use Friendica\Network\HTTPException;
@ -57,6 +59,8 @@ class Receive extends BaseModule
throw new HTTPException\ForbiddenException($this->t('Access denied.'));
}
Item::incrementInbound(Protocol::DIASPORA);
if ($this->parameters['type'] === 'public') {
$this->receivePublic();
} else if ($this->parameters['type'] === 'users') {