Fix loading and activity warning
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -142,7 +142,11 @@ class DeckProvider implements IProvider {
|
||||
$placeholders = $replacements = [];
|
||||
foreach ($parameters as $placeholder => $parameter) {
|
||||
$placeholders[] = '{' . $placeholder . '}';
|
||||
if (array_key_exists('name', $parameter)) {
|
||||
$replacements[] = $parameter['name'];
|
||||
} else {
|
||||
$replacements[] = '';
|
||||
}
|
||||
}
|
||||
|
||||
$event->setParsedSubject(str_replace($placeholders, $replacements, $subject))
|
||||
|
||||
@@ -88,7 +88,7 @@ class BoardService {
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function findAll($since = 0) {
|
||||
public function findAll($since = -1) {
|
||||
$userInfo = $this->getBoardPrerequisites();
|
||||
$userBoards = $this->boardMapper->findAllByUser($userInfo['user'], null, null, $since);
|
||||
$groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'],null, null, $since);
|
||||
|
||||
@@ -127,7 +127,7 @@ class StackService {
|
||||
* @throws \OCA\Deck\NoPermissionException
|
||||
* @throws BadRequestException
|
||||
*/
|
||||
public function findAll($boardId, $since = 0) {
|
||||
public function findAll($boardId, $since = -1) {
|
||||
if (is_numeric($boardId) === false) {
|
||||
throw new BadRequestException('boardId must be a number');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user