ah, sorry. it seems I didn't use any
actions anywhere yet so I didn't thought much about the difference...
so as of @Mega your original request is completely valid, but it should be one of the following:
I need a new hook
I think if you explain the use-case the devs will gladly add this additional line into core...
I think the hook
action:post.purge should become a
Since there is no reason that I can think of (since the only reason would be the plugin-capability of changing the
pid to purge) for NodeBB to wait for plugin-response before purging a post, you'd have to give a bit more information on this.
I need to get the post-content (or other additional data of the post) within the hook
Again I think the devs would gladly help if you specify what you're intending to do...
filter:post.purge (co-existing to the
action, called before the
action) would be the best solution here since you can get any information you need by the
pid before it gets purged and call the
next callback before actually processing.
Am I right? Which one is it?