<?php
/**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Module\ActivityPub;
-use Friendica\Core\System;
use Friendica\Model\User;
use Friendica\Module\BaseApi;
use Friendica\Protocol\ActivityPub;
protected function rawContent(array $request = [])
{
if (empty($this->parameters['nickname'])) {
- throw new \Friendica\Network\HTTPException\NotFoundException();
+ $this->jsonExit([], 'application/activity+json');
}
$owner = User::getOwnerDataByNick($this->parameters['nickname']);
protected function post(array $request = [])
{
- self::checkAllowedScope(self::SCOPE_WRITE);
+ $this->checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();
$postdata = Network::postdata();