]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/action.py
try to get the position of the event currentTarget if there is no pageX or pageY...
[osqa.git] / forum / models / action.py
index 7e887452dcd0451909cc618f834179ade80fd2a4..55cf733886bf37479df94f727b8fd2c6bb98cf24 100644 (file)
@@ -135,7 +135,11 @@ class Action(BaseModel):
         if isnew:
             if (self.node is None) or (not self.node.nis.wiki):
                 self.repute_users()
+
+        if isnew:
             self.process_action()
+
+        if isnew:
             self.trigger_hooks(threaded, True)
 
         return self