1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Merge pull request #6768 from wallabag/remove-mobi

Remove mobi export
This commit is contained in:
Nicolas Lœuillet 2023-08-22 10:18:29 +02:00 committed by GitHub
commit 0e44035b67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 25 additions and 37 deletions

View file

@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace Application\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Wallabag\CoreBundle\Doctrine\WallabagMigration;
/**
* Remove mobi export.
*/
final class Version20230728091417 extends WallabagMigration
{
public function up(Schema $schema): void
{
$this->addSql('DELETE FROM' . $this->getTable('internal_setting') . " WHERE name = 'export_mobi';");
}
public function down(Schema $schema): void
{
$this->addSql('INSERT INTO ' . $this->getTable('internal_setting') . " (name, value, section) VALUES ('export_mobi', '1', 'export');");
}
}

View file

@ -100,8 +100,6 @@ fos_rest:
- 'application/pdf'
epub:
- 'application/epub+zip'
mobi:
- 'application/x-mobipocket-ebook'
view_response_listener: 'force'
formats:
xml: true
@ -110,13 +108,12 @@ fos_rest:
csv: true
pdf: true
epub: true
mobi: true
failed_validation: HTTP_BAD_REQUEST
routing_loader: false
format_listener:
enabled: true
rules:
- { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
- { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false }
- { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }
- { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false }

View file

@ -85,10 +85,6 @@ wallabag_core:
name: export_epub
value: 1
section: export
-
name: export_mobi
value: 0
section: export
-
name: export_pdf
value: 1