Replace "notification" call with new function, removing enotify.php
This commit is contained in:
parent
4422be9cea
commit
2f1f6f6fb2
7 changed files with 7 additions and 46 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue