Fix comments if activity stream setting is disabled

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2019-06-30 12:42:49 +02:00
parent cc4439517d
commit f18accd9c4
7 changed files with 71 additions and 10 deletions

View File

@@ -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']);
}