XF 2.3 Any way to use setIsAutomated() with the API?

W1zzard

Well-known member
When modifying content using the API, history entries are created, is it possible to make sure setIsAutomated() is called, so automated scripts don't create a ton of edit history and logs

edit: 'silent' probably works
 
Just tested, "silent" still saves the post editing history and the post is getting moderated (subject to the spam check)
 
We definitely need an option to set isAutomated through the API. Right now there's no official way to bypass things like please_enter_message_with_no_more_than_x_media

My workaround is a plugin that hooks into the constructor of XF\Service\Post\EditorService and does something like
if (\XF::isApiBypassingPermissions())
$this->setIsAutomated();
 
Back
Top Bottom