sforkowany z mirror/friendica
Update src/Model/FContact.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>2022.09-rc
rodzic
61fee84c15
commit
4733683e91
|
@ -191,22 +191,21 @@ class FContact
|
||||||
'note' => $suggest['body'], 'hash' => $hash, 'datetime' => DateTimeFormat::utcNow(), 'blocked' => false];
|
'note' => $suggest['body'], 'hash' => $hash, 'datetime' => DateTimeFormat::utcNow(), 'blocked' => false];
|
||||||
DBA::insert('intro', $fields);
|
DBA::insert('intro', $fields);
|
||||||
|
|
||||||
notification(
|
notification([
|
||||||
[
|
'type' => Type::SUGGEST,
|
||||||
'type' => Type::SUGGEST,
|
'notify_flags' => $owner['notify-flags'],
|
||||||
'notify_flags' => $owner['notify-flags'],
|
'language' => $owner['language'],
|
||||||
'language' => $owner['language'],
|
'to_name' => $owner['name'],
|
||||||
'to_name' => $owner['name'],
|
'to_email' => $owner['email'],
|
||||||
'to_email' => $owner['email'],
|
'uid' => $owner['uid'],
|
||||||
'uid' => $owner['uid'],
|
'item' => $suggest,
|
||||||
'item' => $suggest,
|
'link' => DI::baseUrl().'/notifications/intros',
|
||||||
'link' => DI::baseUrl().'/notifications/intros',
|
'source_name' => $contact['name'],
|
||||||
'source_name' => $contact['name'],
|
'source_link' => $contact['url'],
|
||||||
'source_link' => $contact['url'],
|
'source_photo' => $contact['photo'],
|
||||||
'source_photo' => $contact['photo'],
|
'verb' => Activity::REQ_FRIEND,
|
||||||
'verb' => Activity::REQ_FRIEND,
|
'otype' => 'intro'
|
||||||
'otype' => 'intro']
|
]);
|
||||||
);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue