A user has selected to watch all threads that they create and post in.
When I create a new post in a thread, the thread gets watched for that specific user
Code:
Read more
Читать далее...
When I create a new post in a thread, the thread gets watched for that specific user
Code:
Код:
$thread = \XF::em()->find('XF:Thread', $threadid);
$user = \XF::em()->find('XF:User', $userid);
$post = \XF::asVisitor($user, function() use ($thread, $message)
{
$creator = \XF::service('XF:Thread\Replier', $thread);
$creator->setMessage($message)...
Read more
Читать далее...