]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Ensure that pokes are always send only via DFRN
[friendica.git] / mod / item.php
index b064bbce8e8a318d591ed5830754fd8b39027612..1fccbca4d6b85fa072729b6bad8005027998c26d 100644 (file)
@@ -40,6 +40,7 @@ use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Emailer;
 use Friendica\Util\Security;
 use Friendica\Util\Strings;
+use Friendica\Worker\Delivery;
 
 require_once 'include/items.php';
 
@@ -603,7 +604,7 @@ function item_post(App $a) {
                $origin = $_REQUEST['origin'];
        }
 
-       $notify_type = ($toplevel_item_id ? 'comment-new' : 'wall-new');
+       $notify_type = ($toplevel_item_id ? Delivery::COMMENT : Delivery::POST);
 
        $uri = ($message_id ? $message_id : Item::newURI($api_source ? $profile_uid : $uid, $guid));