Skip to content

Commit

Permalink
Revert "webhook: Fix webhook bug"
Browse files Browse the repository at this point in the history
This reverts commit 4c2c5fb.
  • Loading branch information
doortts committed Jul 10, 2018
1 parent f86673b commit 622d9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/AbstractPostingApp.java
Expand Up @@ -104,6 +104,7 @@ protected static Result editPosting(AbstractPosting original, AbstractPosting po
if (!StringUtils.defaultString(original.body, "").equals(StringUtils.defaultString(posting.body, ""))) {
posting.history = addToHistory(original, posting) + StringUtils.defaultString(original.history, "");
}
preUpdateHook.run();

try {
posting.checkLabels();
Expand All @@ -120,7 +121,6 @@ protected static Result editPosting(AbstractPosting original, AbstractPosting po
// Attach the files in the current user's temporary storage.
attachUploadFilesToPost(original.asResource());

preUpdateHook.run();
return redirect(redirectTo);
}

Expand Down

0 comments on commit 622d9f8

Please sign in to comment.