Fix comments if activity stream setting is disabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -90,7 +90,7 @@ class DeckProvider implements IProvider {
|
||||
|
||||
$author = $event->getAuthor();
|
||||
// get author if
|
||||
if ($author === '' && array_key_exists('author', $subjectParams)) {
|
||||
if (($author === '' || $author === ActivityManager::DECK_NOAUTHOR_COMMENT_SYSTEM_ENFORCED) && array_key_exists('author', $subjectParams)) {
|
||||
$author = $subjectParams['author'];
|
||||
unset($subjectParams['author']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user