mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
documenting hooks
This commit is contained in:
@@ -208,6 +208,24 @@ Executed whenever a post is created or edited, after it is saved into the databa
|
|||||||
``action:topic.edit``
|
``action:topic.edit``
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
``action:topic.pin``
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Called when toggling pinned state
|
||||||
|
Object: tid, isPinned
|
||||||
|
|
||||||
|
``action:topic.lock``
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Called when toggling locked state
|
||||||
|
Object: tid, isLocked
|
||||||
|
|
||||||
|
``action:topic.move``
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Called when moving a topic from one category to another
|
||||||
|
Object: tid, fromCid, toCid
|
||||||
|
|
||||||
``action:post.edit``
|
``action:post.edit``
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user