mirror of
https://github.com/friendica/friendica
synced 2025-04-27 06:30:12 +00:00
Don't queue relay posts
This commit is contained in:
parent
7f0bd63b7d
commit
a75858f02c
3 changed files with 33 additions and 5 deletions
|
@ -136,7 +136,8 @@ class Queue
|
|||
logger('queue: diaspora_delivery: item ' . $q_item['id'] . ' for ' . $contact['name'] . ' <' . $contact['url'] . '>');
|
||||
$deliver_status = Diaspora::transmit($owner, $contact, $data, $public, true, 'Queue:' . $q_item['id'], true);
|
||||
|
||||
if (($deliver_status >= 200) && ($deliver_status <= 299)) {
|
||||
if ((($deliver_status >= 200) && ($deliver_status <= 299)) ||
|
||||
($contact['contact-type'] == ACCOUNT_TYPE_RELAY)) {
|
||||
QueueModel::removeItem($q_item['id']);
|
||||
} else {
|
||||
QueueModel::updateTime($q_item['id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue