mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Merge pull request #7245 from annando/unify-constants
Fix delivery counter for poking / unify delivery commands
This commit is contained in:
commit
d7d44e1af7
16 changed files with 38 additions and 73 deletions
|
@ -2148,13 +2148,9 @@ class Diaspora
|
|||
if ($comment['id'] == $comment['parent']) {
|
||||
continue;
|
||||
}
|
||||
if ($comment['verb'] == ACTIVITY_POST) {
|
||||
$cmd = $comment['self'] ? Delivery::COMMENT : 'comment-import';
|
||||
} else {
|
||||
$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);
|
||||
|
||||
Logger::info('Deliver participation', ['item' => $comment['id'], 'contact' => $contact_id]);
|
||||
Worker::add(PRIORITY_HIGH, 'Delivery', Delivery::POST, $comment['id'], $contact_id);
|
||||
}
|
||||
DBA::close($comments);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue