1
0
Fork 0
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:
Harm te Molder 2025-01-16 09:54:04 +01:00
parent 36edaa8098
commit d731cfc0cb
No known key found for this signature in database
GPG key ID: 74A98B5EEF1920BA

View file

@ -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);
}