mirror of
https://github.com/friendica/friendica
synced 2025-04-29 09:04:24 +02:00
Merge pull request #6957 from MrPetovan/bug/6943-add-tombstone
Send AP Tombstone activity on deleted profiles
This commit is contained in:
commit
c439cb656a
3 changed files with 28 additions and 4 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