forked from GNUsocial/gnu-social
The core plugins whose version was attached to GS's were reseted to 2.0.0. 2.0.0 was chosen as reset version for plugins because it is higher than the one that was set by inheriting GS version. Furthermore, it's a major change from prior plugin versioning system thus it also makes semantic sense. Justification for version bump: == GS == 9a4ab31f26 1.19.0 |
||
---|---|---|
.. | ||
scripts | ||
README | ||
StoreRemoteMediaPlugin.php |
The StoreRemoteMedia plugin downloads remotely attached files to local server. Installation ============ add "addPlugin('StoreRemoteMedia');" to the bottom of your config.php Settings ======== domain_blacklist: Array of regular expressions. Always escape your dots and end your strings. check_blacklist: Whether to check the domain_blacklist. domain_whitelist: Array of regular expressions. Always escape your dots and end your strings. check_whitelist: Whether to check the domain_whitelist. When check_whitelist is set, only images from URLs matching a regex in the domain_whitelist array are accepted for local storage. When check_blacklist is set, images from URLs matching any regex in the domain_blacklist are denied local storage. When both lists are checked, only images from URLs that match a regex in the domain_whitelist and that match no regexen in the domain_blacklist are accepted for local storage. Example ======= addPlugin('StoreRemoteMedia', array( 'domain_whitelist' => array( '^i\d*\.ytimg\.com$' => 'YouTube', '^i\d*\.vimeocdn\.com$' => 'Vimeo' ), 'check_whitelist' => true, ));