[CORE] Better queues defaults

This commit is contained in:
Diogo Cordeiro
2019-12-11 02:20:54 +00:00
parent dc211c9c44
commit 60446dfc20
12 changed files with 68 additions and 61 deletions

View File

@@ -27,7 +27,7 @@ defined('GNUSOCIAL') || die();
class DBQueuePlugin extends Plugin
{
const PLUGIN_VERSION = '0.0.1';
const PLUGIN_VERSION = '0.1.0';
public function onStartNewQueueManager(?QueueManager &$qm)
{
@@ -38,12 +38,15 @@ class DBQueuePlugin extends Plugin
public function onPluginVersion(array &$versions): bool
{
$versions[] = array('name' => 'DBQueue',
'version' => self::PLUGIN_VERSION,
'author' => 'Miguel Dantas',
'description' =>
// TRANS: Plugin description.
_m('Plugin using the database as a backend for GNU social queues'));
$versions[] = [
'name' => 'DBQueue',
'version' => self::PLUGIN_VERSION,
'author' => 'Miguel Dantas',
'homepage' => GNUSOCIAL_ENGINE_URL,
'description' =>
// TRANS: Plugin description.
_m('Plugin using the database as a backend for GNU social queues')
];
return true;
}
};

View File

@@ -4,9 +4,7 @@ that uses the database as it's backing storage.
Installation
============
This plugin is replaces other queue manager plugins, such as UnQueue,
which enabled by default and which should, but is not required to be
disabled.
This plugin is enabled by default and replaces other queue manager plugins, such as UnQueue.
addPlugin('DBQueue');
@@ -15,4 +13,4 @@ Example
In config.php
addPlugin('DBQueue');
addPlugin('DBQueue');