Fixed post uploading

This commit is contained in:
Marcin Kurczewski 2014-05-04 17:51:07 +02:00
parent 458aac971d
commit b02c55e52c

View file

@ -20,7 +20,7 @@ class AddPostJob extends AbstractJob
//warning: it uses the same privileges as post editing internally //warning: it uses the same privileges as post editing internally
$arguments = $this->getArguments(); $arguments = $this->getArguments();
$arguments[EditPostJob::POST_ID] = $post->id; $arguments[EditPostJob::POST_ID] = $post->id;
Api::execute(new EditPostJob(), $arguments); Api::run(new EditPostJob(), $arguments);
//load the post after edits //load the post after edits
$post = PostModel::findById($post->id); $post = PostModel::findById($post->id);