Commit 067a070b authored by Sebastian Kotte's avatar Sebastian Kotte

[FIX] call slack online check before if clause

parent 0a5a968c
Pipeline #6226 failed with stages
in 17 seconds
......@@ -3,6 +3,7 @@ declare(strict_types = 1);
namespace T3o\T3omy\ViewHelpers;
use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
/**
......@@ -34,6 +35,7 @@ class IsSlackOnlineViewhelper extends AbstractViewHelper
$slackUser = $this->slackUserRepository->findBySlackId($feUser->getSlackId());
if ($slackUser) {
$slackUser->getPresence();
if ($slackUser->getPresence() === 'active') {
$status = 'slack-online';
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment