. * */ namespace Friendica\Module\Api\Mastodon\Notifications; use Friendica\Core\System; use Friendica\DI; use Friendica\Module\BaseApi; /** * @see https://docs.joinmastodon.org/methods/notifications/ */ class Clear extends BaseApi { protected function post(array $request = []) { self::checkAllowedScope(self::SCOPE_WRITE); $uid = self::getCurrentUserID(); DI::notification()->setAllSeenForUser($uid); System::jsonExit([]); } }