Add download feature for domain block list

- Add new /blocklist/domain/download route
- Add link on /friendica page
This commit is contained in:
Hypolite Petovan 2022-07-27 11:54:50 -04:00
parent 1b2182c43c
commit 7d7a5a65e9
4 changed files with 87 additions and 18 deletions

View file

@ -76,12 +76,13 @@ class Friendica extends BaseModule
if (!empty($blockList)) {
$blocked = [
'title' => DI::l10n()->t('On this server the following remote servers are blocked.'),
'header' => [
'title' => DI::l10n()->t('On this server the following remote servers are blocked.'),
'header' => [
DI::l10n()->t('Blocked domain'),
DI::l10n()->t('Reason for the block'),
],
'list' => $blockList,
'download' => DI::l10n()->t('Download this list in CSV format'),
'list' => $blockList,
];
} else {
$blocked = null;