forked from GNUsocial/gnu-social
Notice_source checks in better code style
This commit is contained in:
@@ -339,7 +339,7 @@ class ApiSearchAtomAction extends ApiPrivateAuthAction
|
||||
$source = null;
|
||||
|
||||
$ns = $notice->getSource();
|
||||
if ($ns) {
|
||||
if ($ns instanceof Notice_source) {
|
||||
if (!empty($ns->name) && !empty($ns->url)) {
|
||||
$source = '<a href="'
|
||||
. htmlspecialchars($ns->url)
|
||||
|
Reference in New Issue
Block a user