mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-30 19:22:12 +00:00
Use domain name as author instead of "Unknown"
This commit is contained in:
parent
36edaa8098
commit
d731cfc0cb
1 changed files with 4 additions and 1 deletions
|
@ -192,8 +192,11 @@ class EntriesExport
|
|||
// use a hash of the original URL plus title as chapter filename inside the Epub
|
||||
$filename = sha1(\sprintf('%s:%s', $entry->getUrl(), $entry->getTitle()));
|
||||
|
||||
$authors = $entry->getDomainName();
|
||||
if (empty($authors)) { // TODO Test this
|
||||
$authors = $this->translator->trans('export.unknown');
|
||||
}
|
||||
$publishedBy = $entry->getPublishedBy();
|
||||
$authors = $this->translator->trans('export.unknown');
|
||||
if (!empty($publishedBy)) {
|
||||
$authors = implode(',', $publishedBy);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue