forked from GNUsocial/gnu-social
Fix for source attribution on notices; it was displaying the code instead of the source name sometimes.
This commit is contained in:
parent
0faa988e91
commit
fd530a892f
@ -499,7 +499,7 @@ class NoticeListItem extends Widget
|
||||
$ns = $this->notice->getSource();
|
||||
|
||||
if ($ns) {
|
||||
$source_name = _($ns->code);
|
||||
$source_name = (empty($ns->name)) ? _($ns->code) : _($ns->name);
|
||||
$this->out->text(' ');
|
||||
$this->out->elementStart('span', 'source');
|
||||
$this->out->text(_('from'));
|
||||
|
Loading…
Reference in New Issue
Block a user