mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-26 18:21:02 +00:00
Use the article domain as author for export files
When exporting an entry, use the domain name as author name for epub, mobi and pdf formats, instead of 'wallabag'. Change the author from array to string, because for now, there is always only one author.
This commit is contained in:
parent
b5d7eb148c
commit
07320a2bd2
4 changed files with 26 additions and 6 deletions
|
@ -33,6 +33,7 @@ class ExportController extends Controller
|
|||
return $this->get('wallabag_core.helper.entries_export')
|
||||
->setEntries($entry)
|
||||
->updateTitle('entry')
|
||||
->updateAuthor('entry')
|
||||
->exportAs($format);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
throw new NotFoundHttpException($e->getMessage());
|
||||
|
@ -76,6 +77,7 @@ class ExportController extends Controller
|
|||
return $this->get('wallabag_core.helper.entries_export')
|
||||
->setEntries($entries)
|
||||
->updateTitle($method)
|
||||
->updateAuthor($method)
|
||||
->exportAs($format);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
throw new NotFoundHttpException($e->getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue