]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/StoreRemoteMedia/README
If the attachment is a photo, don't replace representation in oEmbed
[quix0rs-gnu-social.git] / plugins / StoreRemoteMedia / README
1 The StoreRemoteMedia plugin downloads remotely attached files to local server.
2
3 Installation
4 ============
5 add "addPlugin('StoreRemoteMedia');"
6 to the bottom of your config.php
7
8 Settings
9 ========
10 domain_blacklist: Array of regular expressions. Always escape your dots and end your strings.
11 check_blacklist: Whether to check the domain_blacklist.
12
13 domain_whitelist: Array of regular expressions. Always escape your dots and end your strings.
14 check_whitelist: Whether to check the domain_whitelist.
15
16 When check_whitelist is set, only images from URLs matching a regex in the
17 domain_whitelist array are accepted for local storage. When check_blacklist
18 is set, images from URLs matching any regex in the domain_blacklist are
19 denied local storage. When both lists are checked, only images from URLs
20 that match a regex in the domain_whitelist and that match no regexen in the
21 domain_blacklist are accepted for local storage.
22
23 Example
24 =======
25 addPlugin('StoreRemoteMedia', array(
26     'domain_whitelist' => array(
27         '^i\d*\.ytimg\.com$' => 'YouTube',
28         '^i\d*\.vimeocdn\.com$' => 'Vimeo'
29     ),
30     'check_whitelist' => true,
31 ));
32