Update src/Model/FContact.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
pull/9304/head
Michael Vogel 2020-09-27 22:31:59 +02:00 zatwierdzone przez GitHub
rodzic 61fee84c15
commit 4733683e91
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 15 dodań i 16 usunięć

Wyświetl plik

@ -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;
}