mirror of
https://github.com/friendica/friendica
synced 2025-04-20 13:50:16 +00:00
Move FSuggest to depository
This commit is contained in:
parent
4a50a83437
commit
82a6c78033
13 changed files with 236 additions and 464 deletions
|
@ -68,16 +68,15 @@ class FriendSuggest extends BaseModule
|
|||
|
||||
$note = Strings::escapeHtml(trim($_POST['note'] ?? ''));
|
||||
|
||||
$suggest = DI::fsuggest()->insert([
|
||||
'uid' => local_user(),
|
||||
'cid' => $cid,
|
||||
'name' => $contact['name'],
|
||||
'url' => $contact['url'],
|
||||
'request' => $contact['request'],
|
||||
'photo' => $contact['avatar'],
|
||||
'note' => $note,
|
||||
'created' => DateTimeFormat::utcNow()
|
||||
]);
|
||||
$suggest = DI::fsuggest()->save(DI::fsuggestFactory()->createNew(
|
||||
local_user(),
|
||||
$cid,
|
||||
$contact['name'],
|
||||
$contact['url'],
|
||||
$contact['request'],
|
||||
$contact['avatar'],
|
||||
$note
|
||||
));
|
||||
|
||||
Worker::add(PRIORITY_HIGH, 'Notifier', Delivery::SUGGESTION, $suggest->id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue