No thread alert with new posts when user has not visited their thread

When posting a news article on my site's CMS, I create a new thread for that article, with the userid of that user that was posting the news item.

The code to do this is this:

Code:

Код:
        $forum = \XF::em()->find('XF:Forum', $forumid);
        $user = \XF::em()->find('XF:User', $userid);
        $thread = \XF::asVisitor($user, function() use ($forum, $title, $message)
        {
            $creator = \XF::service('XF:Thread\Creator', $forum)...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ