Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is it possible to get the сid of a new comment from outside? #340

Open
ygguser opened this issue Apr 14, 2023 · 1 comment
Open

Comments

@ygguser
Copy link

ygguser commented Apr 14, 2023

Tell me, please, is it possible to get the сid of a new comment from outside?

I'm trying to make a plugin that will send notifications to the telegram messenger when new comments are added, and in order to get a link to a comment (it will be sent in a message) I need the cid of the new comment being added...

Using ACTION_ACT_PREPROCESS in my plugin, I get everything I need except the cid...

I'm afraid if I do as you have in the plugin ($cid = md5($comment['user']['id'].$date);), the time may not match and the cid in my plugin will be different from yours...

@ygguser
Copy link
Author

ygguser commented Apr 18, 2023

In general, I would really like to be able to handle the event of editing, adding, deleting, toggling comments with accessibility to the comment text and its cid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant