[OStatus] Fix notice enqueue

OStatusPlugin:
- Enqueue in the last position, as it should be. No need to worry about
the OMB comment, this protocol no longer have queue handlers that could
cause a conflict.
This commit is contained in:
tenma 2019-08-06 21:34:02 +01:00 committed by Diogo Peralta Cordeiro
parent 20d101e1f2
commit 081eec3608

View File

@ -30,7 +30,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
class OStatusPlugin extends Plugin
{
const PLUGIN_VERSION = '2.0.2';
const PLUGIN_VERSION = '2.0.3';
/**
* Hook for RouterInitialized event.
@ -120,8 +120,7 @@ class OStatusPlugin extends Plugin
function onStartEnqueueNotice($notice, &$transports)
{
if ($notice->inScope(null) && $notice->getProfile()->hasRight(Right::PUBLICNOTICE)) {
// put our transport first, in case there's any conflict (like OMB)
array_unshift($transports, 'ostatus');
$transports[] = 'ostatus';
$this->log(LOG_INFO, "OSTATUS [{$notice->getID()}]: queued for OStatus processing");
} else {
// FIXME: we don't do privacy-controlled OStatus updates yet.