gnu-social/plugins/SubscriptionThrottle
Diogo Peralta Cordeiro 6e031d623a [VersionBump] 2.0.0beta0
Updated composer and translations

composer install --no-dev
composer dump-autoload --optimize
git add vendor/ --force
make updatepo
2021-07-18 12:49:17 +01:00
..
locale [VersionBump] 2.0.0beta0 2021-07-18 12:49:17 +01:00
README Add plugin READMEs 2016-02-08 17:48:37 +00:00
SubscriptionThrottlePlugin.php Avoid ordering just by a timestamp 2021-07-16 19:44:41 +01:00

README

The SubscriptionThrottle plugin limits how fast users can subscribe to groups
and other users.

Installation
============
add "addPlugin('SubscriptionThrottle');"
to the bottom of your config.php

Settings
========
subLimits: Array of time spans in seconds to limit subscriptions to users.
groupLimits: Array of time spans in seconds to limit subscriptions to groups.

Example
=======
addPlugin('SubscriptionThrottle', array(
    'subLimits' => array(
        86400 => 100,   // 100 subs per day
        3600 => 50;     // 50 subs per hour
    ),
    'groupLimits' => array(
        86400 => 50,    // 50 subs per day
        3600 => 25;     // 25 subs per hour
    )
));