mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 00:23:52 +00:00
Using a whitelist for "leistungsschutzrecht"
This commit is contained in:
parent
1b7dcbd0bb
commit
59229fa7d5
1 changed files with 5 additions and 1 deletions
|
@ -71,10 +71,14 @@ function leistungsschutzrecht_fetchsites() {
|
||||||
$sitelist = fetch_url($url);
|
$sitelist = fetch_url($url);
|
||||||
$siteurls = explode(',', $sitelist);
|
$siteurls = explode(',', $sitelist);
|
||||||
|
|
||||||
|
$whitelist = array('tagesschau.de', 'heute.de', 'wdr.de');
|
||||||
|
|
||||||
$sites = array();
|
$sites = array();
|
||||||
foreach ($siteurls AS $site) {
|
foreach ($siteurls AS $site) {
|
||||||
|
if (!in_array($site, $whitelist)) {
|
||||||
$sites[$site] = $site;
|
$sites[$site] = $site;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// I would prefer parsing the list from the original site, but I haven't found a list.
|
// I would prefer parsing the list from the original site, but I haven't found a list.
|
||||||
// The following stays here to possibly reenable it in the future without having to reinvent the wheel completely.
|
// The following stays here to possibly reenable it in the future without having to reinvent the wheel completely.
|
||||||
|
|
Loading…
Reference in a new issue