mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:44:25 +02:00
Move user tombstone activity data to ActivityPub\Transmitter
This commit is contained in:
parent
d51b9226a6
commit
5b12bccb45
2 changed files with 18 additions and 8 deletions
|
@ -247,6 +247,23 @@ class Transmitter
|
|||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $username
|
||||
* @return array
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public static function getDeletedUser($username)
|
||||
{
|
||||
return [
|
||||
'@context' => ActivityPub::CONTEXT,
|
||||
'id' => System::baseUrl() . '/profile/' . $username,
|
||||
'type' => 'Tombstone',
|
||||
'published' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),
|
||||
'updated' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),
|
||||
'deleted' => DateTimeFormat::utcNow(DateTimeFormat::ATOM),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array with permissions of a given item array
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue