mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-29 00:07:21 -04:00
Feed parsing: use author email when there's no author name (#1801)
This is especially useful because when author is given as `<author>Author Name</author>` ( as in this example https://cyber.harvard.edu/rss/rss.html#ltauthorgtSubelementOfLtitemgt ), SimplePie will expose *Author Name* as `email`.
This commit is contained in:
committed by
Alexandre Alapetite
parent
ab2aeae8d4
commit
0c066cb428
@@ -355,7 +355,7 @@ class FreshRSS_Feed extends Minz_Model {
|
||||
$this->id(),
|
||||
$item->get_id(false, false),
|
||||
$title === null ? '' : $title,
|
||||
$author === null ? '' : html_only_entity_decode(strip_tags($author->name)),
|
||||
$author === null ? '' : html_only_entity_decode(strip_tags($author->name == null ? $author->email : $author->name)),
|
||||
$content === null ? '' : $content,
|
||||
$link === null ? '' : $link,
|
||||
$date ? $date : time()
|
||||
|
||||
Reference in New Issue
Block a user