mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Use similar values for generator and system actor
This commit is contained in:
parent
02d8cc2f71
commit
d7e8ee51ae
2 changed files with 6 additions and 3 deletions
|
@ -25,6 +25,7 @@ use DivineOmega\DOFileCachePSR6\CacheItemPool;
|
|||
use DivineOmega\PasswordExposed;
|
||||
use ErrorException;
|
||||
use Exception;
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Pager;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -161,6 +162,7 @@ class User
|
|||
}
|
||||
}
|
||||
|
||||
$system['name'] = App::PLATFORM . " '" . App::CODENAME . "' " . App::VERSION . '-' . DB_UPDATE_VERSION;
|
||||
$system['sprvkey'] = $system['uprvkey'] = $system['prvkey'];
|
||||
$system['spubkey'] = $system['upubkey'] = $system['pubkey'];
|
||||
$system['nickname'] = $system['nick'];
|
||||
|
|
|
@ -322,16 +322,17 @@ class Transmitter
|
|||
}
|
||||
|
||||
/**
|
||||
* Return the service array containing information the used software and it's url
|
||||
* Return the service array containing information the used software and its url
|
||||
*
|
||||
* @return array with service data
|
||||
*/
|
||||
public static function getService(): array
|
||||
{
|
||||
return [
|
||||
'type' => 'Service',
|
||||
'id' => (string)DI::baseUrl() . '/friendica',
|
||||
'type' => 'Application',
|
||||
'name' => App::PLATFORM . " '" . App::CODENAME . "' " . App::VERSION . '-' . DB_UPDATE_VERSION,
|
||||
'url' => (string)DI::baseUrl()
|
||||
'url' => (string)DI::baseUrl(),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue