]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Add tests for the PermissionSet repository
[friendica.git] / mod / item.php
index bfb865b790553d3ee293acfc40f117a4beba0652..1309dce47e451e010ed0355a9030525f491de13c 100644 (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,