mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 10:14:33 -04:00
Fallback to GUID when entry title is empty (#2813)
When entries have an empty title, our UI was a bit broken. In this (rare) case, we revert to GUID, which is always non-empty.
This commit is contained in:
1 parent
0b6d39a795
commit
e9f879b411
1 file changed
+2
-2
@@ -43,7 +43,7 @@ class FreshRSS_Entry extends Minz_Model {
|
||||
return $this->guid;
|
||||
}
|
||||
public function title() {
|
||||
return $this->title;
|
||||
return $this->title == '' ? $this->guid() : $this->title;
|
||||
}
|
||||
public function author() {
|
||||
//Deprecated
|
||||
@@ -139,7 +139,7 @@ class FreshRSS_Entry extends Minz_Model {
|
||||
}
|
||||
public function _title($value) {
|
||||
$this->hash = null;
|
||||
$this->title = $value;
|
||||
$this->title = trim($value);
|
||||
}
|
||||
public function _author($value) {
|
||||
//Deprecated
|
||||
|
||||
Reference in new issue
Block a user