Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Auto run /dba/counts
grosserg
New
Hello, everybody! How do I run /dba/counts remotely (via curl for example)?
I edited comment date in a discussion, but in discussions table comment date remain the same. For update I need to run /dba/counts, but I edited date directly in the database via main site, where I created a widget for editing comments. Can I run curl with headers (with access_token) for /dba/counts?
0
Comments
just login an browse to /dba/counts and run it.
Are you saying you are ignoring the data model entirely?
grep is your friend.
It turns out that way. My boss wants to be able to edit the date of the comment and discussion.
Is there another way to do this (via API maybe)?
I don't see an API endpoint for it at the moment. It might be possible to write a small plugin to provide that, or perhaps write a script to automate the process using Puppeteer.
Add Pages to Vanilla with the Basic Pages app
How then can I change comment (discussion) date without harmful for the forum?
Without knowing why the date needs changing - I suugest trying this for future postIngs
I have not try it so idk whether it works or not.
without knowing the use case can't help, but you are likely doing it the wrong way.
grep is your friend.
Puppeteer is great an relatively easy to use if you know node. Depending on use case it may be useful.
grep is your friend.