]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Diaspora.php
Ensure that pokes are always send only via DFRN
[friendica.git] / src / Protocol / Diaspora.php
index e341de208033148971c7cb2e86246277ccc7cff3..ac1cf9c38d469793b7d7179de1cca1a0707167b0 100644 (file)
@@ -37,6 +37,7 @@ use Friendica\Util\Map;
 use Friendica\Util\Network;
 use Friendica\Util\Strings;
 use Friendica\Util\XML;
+use Friendica\Worker\Delivery;
 use SimpleXMLElement;
 
 /**
@@ -2148,9 +2149,9 @@ class Diaspora
                                continue;
                        }
                        if ($comment['verb'] == ACTIVITY_POST) {
-                               $cmd = $comment['self'] ? 'comment-new' : 'comment-import';
+                               $cmd = $comment['self'] ? Delivery::COMMENT : 'comment-import';
                        } else {
-                               $cmd = $comment['self'] ? 'like' : 'comment-import';
+                               $cmd = $comment['self'] ? Delivery::ACTIVITY : 'activity-import';
                        }
                        Logger::log("Send ".$cmd." for item ".$comment['id']." to contact ".$contact_id, Logger::DEBUG);
                        Worker::add(PRIORITY_HIGH, 'Delivery', $cmd, $comment['id'], $contact_id);