Should be compatible with 0.8x but I haven't updated the package.json yet. For now you can install manually. Although there's still quite a lot of work to be done before its complete!
UNSOLVED Find and Modify a Single Topic Based on uid and Custom Field in my Plugin
Avan Sardar last edited by
First of all, absolutley love nodebb! Keep up the amazingly good work. With that said I am a little stuck.
I am working on a plugin that can (will) process a stripe payment for each new post. I have created an end-point hook for stripe to let me know when payment transactions have been completed. The problem that I have is I can't figure out how to find a topic based on uid and a custom session ID that I was successfully able to attach to every new topic. Once I can identify the topic I would like to mark it as paid by updating a custom field. Any ideas?
I have looked into src/topics but I can't seem to figure out how to use any of the functions for what I am trying to do. I might be missing something a little bit more fundamental here.
Thank you in advance!
Hi @avan-sardar, welcome!
find a topic based on uid and a custom session ID
Is this a requirement? If your plugin is listening for something like
action:post.save, then you can process the stripe payment.
The action hook itself also sends the post data, which contains the
tid. Without more context, I am afraid I will not be able to help further.