mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10:12 +00:00
Add download feature for domain block list
- Add new /blocklist/domain/download route - Add link on /friendica page
This commit is contained in:
parent
1b2182c43c
commit
7d7a5a65e9
4 changed files with 87 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue