<?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
*
try {
$source = json_decode($_REQUEST['source'], true);
$trust_source = true;
- $uid = local_user();
+ $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(),
];
}