bookmark
- not sendingupvote
- worksdownvote
- workspoll_vote
- not sendingreact
- worksunreact
- worksreport
- workswarn
- Sends update to user event, but no data about the warningThat's interesting, which content type did you test?upvote
- works
downvote
- works
react
- works
unreact
- works
report
- works
bookmark
to send an update.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 forreact
?
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] =>
)
)
As already pointed out by @Chris D you get this data forThat is the data I receive after reacting to a post
post.update
, not post.react
post.react
, eg. if this is the only event you are listening to?No, it looks like onlyDo you actually get data forpost.react
, eg. if this is the only event you are listening to?
post.update
is sent for reactions.Why the * between W and R? Why not just "Wordpress"?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
A little joke if you've been following the WordPress drama over the past few months.Why the * between W and R? Why not just "Wordpress"?
Yeah I've seen some stuff from the WordPress drama, but I didnt know the W*rdpress expression hahaA little joke if you've been following the WordPress drama over the past few months.
ToSo if this doesn't work for you I think that the other events (unreact
,upvote
,downvote
,report
andwarn)
also don't work and you assumed they are working because you also hadupdate
enabled?
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.We use essential cookies to make this site work, and optional cookies to enhance your experience.