Many webhook actions don't seem to work

Kirby

Well-known member
Affected version
2.3.4
Unless I am missing smth. it seems like sending webhooks for the following actions does not work:

Code:
bookmark
upvote
downvote
poll_vote
react
unreact
report
warn

Digging through the code it looks like those actions are not implemented at all :eek:🤷‍♂️
 
I use webhooks in my W*rdPress app and found the following after running some tests:

bookmark - not sending
upvote - works
downvote - works
poll_vote - not sending
react - works
unreact - works
report - works
warn - Sends update to user event, but no data about the warning
 
Last edited:
Strange. I've tested react / unreact for Posts as well and it doesn't send anything but update is sent when adding / removing a reaction.

Could you test bookmark ?
 
Last edited:
Ah, I forgot to include it in the original list. Could not get bookmark to send an update.

When I tested what "worked" I considered getting a response back as working.

For react you get the updated reaction total from the response, so that could be helpful. Not sure I saw anything similar from upvote/downvote.
 
Now i am completely confused :(

Could you post a sample payload you got for react ?
PHP:
stdClass Object
(
    [content_type] => post
    [event] => update
    [content_id] => 200
    [data] => stdClass Object
        (
            [allowed_content_vote_types] => Array
                (
                    [0] => up
                    [1] => down
                )

            [attach_count] => 0
            [is_first_post] =>
            [is_last_post] => 1
            [is_reacted_to] => 1
            [last_edit_date] => 0
            [message] => This is the message content
            [message_parsed] => This is the message content
            [message_state] => visible
            [position] => 1
            [post_date] => 1930423658
            [post_id] => 200
            [reaction_score] => 1
            [Thread] => stdClass Object
                (
                    [custom_fields] => stdClass Object
                        (
                        )

                    [discussion_open] => 1
                    [discussion_state] => visible
                    [discussion_type] => question
                    [first_post_id] => 203
                    [first_post_reaction_score] => 0
                    [Forum] => stdClass Object
                        (
                            [breadcrumbs] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [node_id] => 1
                                            [title] => Main category
                                            [node_type_id] => Category
                                        )

                                )

                            [description] =>
                            [display_in_list] => 1
                            [display_order] => 1
                            [node_id] => 4
                            [node_name] =>
                            [node_type_id] => Forum
                            [parent_node_id] => 1
                            [title] => Questions
                            [type_data] => stdClass Object
                                (
                                    [allow_posting] => 1
                                    [can_create_thread] => 1
                                    [can_upload_attachment] => 1
                                    [discussion_count] => 1
                                    [forum_type_id] => question
                                    [is_unread] =>
                                    [last_post_date] => 1730423338
                                    [last_post_id] => 262
                                    [last_post_username] => user1
                                    [last_thread_id] => 136
                                    [last_thread_prefix_id] => 0
                                    [last_thread_title] => Test
                                    [message_count] => 2
                                    [min_tags] => 0
                                    [question] => stdClass Object
                                        (
                                            [allow_answer_voting] => 1
                                            [allow_downvote] => 1
                                        )

                                    [require_prefix] =>
                                )

                            [view_url] => https://xfdomain.com/forums/forum.4/
                        )

                    [highlighted_post_ids] => Array
                        (
                        )

                    [is_first_post_pinned] => 1
                    [is_search_engine_indexable] => 1
                    [last_post_date] => 1730420558
                    [last_post_id] => 262
                    [last_post_user_id] => 1704
                    [last_post_username] => user
                    [node_id] => 4
                    [post_date] => 1730420553
                    [prefix_id] => 0
                    [question] => stdClass Object
                        (
                            [solution_post_id] => 0
                            [solution_user_id] => 0
                            [allow_question_actions] => yes
                        )

                    [reply_count] => 1
                    [sticky] =>
                    [tags] => Array
                        (
                        )

                    [thread_id] => 136
                    [title] => Test
                    [User] => stdClass Object
                        (
                            [alert_optout] => Array
                                (
                                )

                            [avatar_urls] => stdClass Object
                                (
                                    [o] =>
                                    [h] =>
                                    [l] =>
                                    [m] =>
                                    [s] =>
                                )

                            [content_show_signature] => 1
                            [creation_watch_state] => watch_email
                            [email] => ojin@oinu.com
                            [email_on_conversation] => 1
                            [interaction_watch_state] => watch_email
                            [is_staff] =>
                            [location] =>
                            [message_count] => 2
                            [profile_banner_urls] => stdClass Object
                                (
                                    [l] =>
                                    [m] =>
                                )

                            [push_on_conversation] => 1
                            [push_optout] => Array
                                (
                                )

                            [question_solution_count] => 0
                            [reaction_score] => 1
                            [receive_admin_email] =>
                            [register_date] => 1730420505
                            [show_dob_date] => 1
                            [show_dob_year] =>
                            [signature] =>
                            [trophy_points] => 1
                            [use_tfa] =>
                            [user_id] => 1704
                            [user_title] =>
                            [username] => vince2
                            [view_url] => https://xfdomain.com/members/user.2/
                            [vote_score] => 1
                        )

                    [user_id] => 2
                    [username] => user
                    [view_count] => 8
                    [view_url] => https://xfdomain.com/threads/test.1/
                )

            [thread_id] => 136
            [User] => stdClass Object
                (
                    [alert_optout] => Array
                        (
                        )

                    [avatar_urls] => stdClass Object
                        (
                            [o] =>
                            [h] =>
                            [l] =>
                            [m] =>
                            [s] =>
                        )

                    [content_show_signature] => 1
                    [creation_watch_state] => watch_email
                    [email] => ojin@oinu.com
                    [email_on_conversation] => 1
                    [interaction_watch_state] => watch_email
                    [is_staff] =>
                    [location] =>
                    [message_count] => 2
                    [profile_banner_urls] => stdClass Object
                        (
                            [l] =>
                            [m] =>
                        )

                    [push_on_conversation] => 1
                    [push_optout] => Array
                        (
                        )

                    [question_solution_count] => 0
                    [reaction_score] => 1
                    [receive_admin_email] =>
                    [register_date] => 1730420505
                    [show_dob_date] => 1
                    [show_dob_year] =>
                    [signature] =>
                    [trophy_points] => 1
                    [use_tfa] =>
                    [user_id] => 1704
                    [user_title] =>
                    [username] => vince2
                    [view_url] => https://xfdomain.com/members/user.2/
                    [vote_score] => 1
                )

            [user_id] => 1704
            [username] => vince2
            [view_url] => https://xfdomain.com/posts/2/
            [visitor_reaction_id] => 1
            [vote_score] => 1
            [warning_message] =>
        )

)
 
That is the data I receive after reacting to a post, which seems to make sense since I set post.react under the Posts content type and a post must be updated to set a new reaction_score.
 
That’s correct but if you disabled post.react then you would still get this webhook because this is the post.updated webhook rather than post.react. It is triggered because the reaction score changes, but it’s not triggered only in that scenario.

We haven’t looked at this yet but we will.
 
Thanks for confirming this.

So if this doesn't work for you I think that the other events (unreact, upvote, downvote, report and warn) also don't work and you assumed they are working because you also had update enabled?
 
I try to make user.upgrades webhook in make.com but not work, if I use user.uopdate, forum is sending every few seconds empty signal to make.com and make.com spend my credits (1 per time) for nothing.
 
I use webhooks in my W*rdPress app and found the following after running some tests:

bookmark - not sending
upvote - works
downvote - works
poll_vote - not sending
react - works
unreact - works
report - works
warn - Sends update to user event, but no data about the warning
Why the * between W and R? Why not just "Wordpress"?
 
So if this doesn't work for you I think that the other events (unreact, upvote, downvote, report and warn) also don't work and you assumed they are working because you also had update enabled?
To finally further confirm, the webhook actions (add post.delete) don't work on XenForo 2.3.6. I did get those confused with update which could be used for some, but @est3ban129's makes a good point that it may not be worth relying on post.update since it can send too many requests.
 


Write your reply...
Back
Top Bottom