<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
use Friendica\BaseModule;
use Friendica\Core\Renderer;
-use Friendica\Core\Session;
use Friendica\DI;
use Friendica\Protocol\ActivityPub;
use Friendica\Util\JsonLD;
try {
$source = json_decode($_REQUEST['source'], true);
$trust_source = true;
- $uid = Session::getLocalUser();
+ $uid = DI::userSession()->getLocalUserId();
$push = false;
if (!$source) {
];
} catch (\Throwable $e) {
$results[] = [
- 'title' => DI::l10n()->t('Error'),
+ 'title' => DI::l10n()->tt('Error', 'Errors', 1),
'content' => $e->getMessage(),
];
}