* add an exception for approval flow notifications.

This commit is contained in:
jyeu
2022-09-29 16:20:02 +08:00
parent d807c2d0d1
commit 9637c6d303
@@ -214,11 +214,16 @@ class xuanxuanIm extends imModel
$messageGroups[$contentData->contentType][] = $message;
continue;
}
if ($contentData->objectType == 'story' && $contentData->action == 'reviewed')
if($contentData->objectType == 'story' && $contentData->action == 'reviewed')
{
$extra = explode(',', $contentDataOuter->extra)[0];
$messageGroups["$contentData->objectType-$contentData->parentType-$contentData->action-$contentData->actor-$extra"][] = $message;
}
if($message->contentType == 'text')
{
$messageGroups['text'][] = $message;
continue;
}
else
{
$messageGroups["$contentData->objectType-$contentData->parentType-$contentData->action-$contentData->actor"][] = $message;