- Affected version
- 2.0 DP 10
XF\Service\Thread\Creator::setUser() is protected, whereas XF\Service\Thread\Replier::setUser() is public.
This seems inconsistent to me and does make it rather cumbersome to post a new thread as a specific user:
instead of just
This seems inconsistent to me and does make it rather cumbersome to post a new thread as a specific user:
PHP:
$creator = \XF::asVisitor($user, function() use ($forum)
{
return \XF::service('XF:Thread\Creator', $forum);
});
instead of just
PHP:
$creator = \XF::service('XF:Thread\Creator', $forum);
$creator->setUser($user);