From 5e589aba3caf61207193f714c6595864e0102c5e Mon Sep 17 00:00:00 2001 From: tenma Date: Tue, 6 Aug 2019 21:34:02 +0100 Subject: [PATCH] [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. --- plugins/OStatus/OStatusPlugin.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 3fdc11451f..648c8fadd0 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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.