- Changes newsletter object to array in SendingQueue router
- Schedules post notification right after its creation
This commit is contained in:
@ -44,7 +44,8 @@ class SendingQueue {
|
||||
$newsletter = $newsletter->asArray();
|
||||
$newsletter['body'] = $this->getOrRenderNewsletterBody($queue, $newsletter);
|
||||
if ($newsletter['type'] === 'notification' &&
|
||||
strpos($newsletter['body']['html'], 'data-post-id') === false) {
|
||||
strpos($newsletter['body']['html'], 'data-post-id') === false
|
||||
){
|
||||
$queue->delete();
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user