doortts doortts 2018-07-10
Revert "webhook: Fix webhook bug"
This reverts commit 4c2c5fbb4b16e14b5bbdf6c1f72c6586e1a92fbe.
@1222a1748b4dcce9cfd72b6dba9a0dc04904063d
app/controllers/AbstractPostingApp.java
--- app/controllers/AbstractPostingApp.java
+++ app/controllers/AbstractPostingApp.java
@@ -104,6 +104,7 @@
         if (!StringUtils.defaultString(original.body, "").equals(StringUtils.defaultString(posting.body, ""))) {
             posting.history = addToHistory(original, posting) + StringUtils.defaultString(original.history, "");
         }
+        preUpdateHook.run();
 
         try {
             posting.checkLabels();
@@ -120,7 +121,6 @@
         // Attach the files in the current user's temporary storage.
         attachUploadFilesToPost(original.asResource());
 
-        preUpdateHook.run();
         return redirect(redirectTo);
     }
 
Add a comment
List