Update src/Model/FContact.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2020-09-27 22:31:59 +02:00 committed by GitHub
parent 61fee84c15
commit 4733683e91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,8 +191,7 @@ class FContact
'note' => $suggest['body'], 'hash' => $hash, 'datetime' => DateTimeFormat::utcNow(), 'blocked' => false];
DBA::insert('intro', $fields);
notification(
[
notification([
'type' => Type::SUGGEST,
'notify_flags' => $owner['notify-flags'],
'language' => $owner['language'],
@ -205,8 +204,8 @@ class FContact
'source_link' => $contact['url'],
'source_photo' => $contact['photo'],
'verb' => Activity::REQ_FRIEND,
'otype' => 'intro']
);
'otype' => 'intro'
]);
return true;
}