mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Move mod/fsuggest to src/Module/SuggestFriends
This commit is contained in:
parent
4ab893a561
commit
34f4aedb87
9 changed files with 236 additions and 7 deletions
|
@ -1510,14 +1510,14 @@ class Transmitter
|
|||
{
|
||||
$owner = User::getOwnerDataById($uid);
|
||||
|
||||
$suggestion = DBA::selectFirst('fsuggest', ['url', 'note', 'created'], ['id' => $suggestion_id]);
|
||||
$suggestion = DI::fsuggest()->getById($suggestion_id);
|
||||
|
||||
$data = ['@context' => ActivityPub::CONTEXT,
|
||||
'id' => DI::baseUrl() . '/activity/' . System::createGUID(),
|
||||
'type' => 'Announce',
|
||||
'actor' => $owner['url'],
|
||||
'object' => $suggestion['url'],
|
||||
'content' => $suggestion['note'],
|
||||
'object' => $suggestion->url,
|
||||
'content' => $suggestion->note,
|
||||
'instrument' => self::getService(),
|
||||
'to' => [ActivityPub::PUBLIC_COLLECTION],
|
||||
'cc' => []];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue