mirror of
https://github.com/friendica/friendica
synced 2024-11-18 19:43:46 +00:00
Update src/Model/FContact.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
61fee84c15
commit
4733683e91
1 changed files with 15 additions and 16 deletions
|
@ -191,22 +191,21 @@ class FContact
|
|||
'note' => $suggest['body'], 'hash' => $hash, 'datetime' => DateTimeFormat::utcNow(), 'blocked' => false];
|
||||
DBA::insert('intro', $fields);
|
||||
|
||||
notification(
|
||||
[
|
||||
'type' => Type::SUGGEST,
|
||||
'notify_flags' => $owner['notify-flags'],
|
||||
'language' => $owner['language'],
|
||||
'to_name' => $owner['name'],
|
||||
'to_email' => $owner['email'],
|
||||
'uid' => $owner['uid'],
|
||||
'item' => $suggest,
|
||||
'link' => DI::baseUrl().'/notifications/intros',
|
||||
'source_name' => $contact['name'],
|
||||
'source_link' => $contact['url'],
|
||||
'source_photo' => $contact['photo'],
|
||||
'verb' => Activity::REQ_FRIEND,
|
||||
'otype' => 'intro']
|
||||
);
|
||||
notification([
|
||||
'type' => Type::SUGGEST,
|
||||
'notify_flags' => $owner['notify-flags'],
|
||||
'language' => $owner['language'],
|
||||
'to_name' => $owner['name'],
|
||||
'to_email' => $owner['email'],
|
||||
'uid' => $owner['uid'],
|
||||
'item' => $suggest,
|
||||
'link' => DI::baseUrl().'/notifications/intros',
|
||||
'source_name' => $contact['name'],
|
||||
'source_link' => $contact['url'],
|
||||
'source_photo' => $contact['photo'],
|
||||
'verb' => Activity::REQ_FRIEND,
|
||||
'otype' => 'intro'
|
||||
]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue