1
0
Fork 0

Merge pull request #10900 from annando/notify

`enotify.php` is removed and its functions were transferred
This commit is contained in:
Hypolite Petovan 2021-10-19 22:22:41 -04:00 committed by GitHub
commit 353cd66b26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 863 additions and 859 deletions

View file

@ -777,7 +777,7 @@ function item_post(App $a) {
// These notifications are sent if someone else is commenting other your wall
if ($contact_record != $author) {
if ($toplevel_item_id) {
notification([
DI::notify()->createFromArray([
'type' => Notification\Type::COMMENT,
'otype' => Notification\ObjectType::ITEM,
'verb' => Activity::POST,
@ -787,7 +787,7 @@ function item_post(App $a) {
'link' => DI::baseUrl() . '/display/' . urlencode($datarray['guid']),
]);
} elseif (empty($forum_contact)) {
notification([
DI::notify()->createFromArray([
'type' => Notification\Type::WALL,
'otype' => Notification\ObjectType::ITEM,
'verb' => Activity::POST,