stream icon indicating copy to clipboard operation
stream copied to clipboard

Email/Slack Alerts assume all alerts are for posts

Open dougaxe1 opened this issue 3 years ago • 0 comments

Bug Report

Expected Behavior

Alerts should not assume record object_id is a post and should display alert actions based on the proper connector.

Actual Behavior

Alerts assume $recordarr['object_id'] is always a post and as a result offer a confusing message and "Edit %s" link, even if the object_id represents a user ID (or similar).

Steps to Reproduce the Problem

  1. Create an Email or Slack alert on the User -> Profiles action

  2. Edit a user's profile

  3. View message sent

Sample message

If the user ID matched a post ID, you'll see a message like this:

A Stream Alert was triggered on [Site].

User:
Context: Profiles Action: Updated Page: [Some Unrelated Page]

Edit Page <>

Edit Alert <[example.com]/wp-admin/edit.php?post_type=wp_stream_alerts#post-123456>

System Information

  • Stream plugin version: 3.9.0
  • WordPress version: 5.9.3

dougaxe1 avatar Jul 08 '22 15:07 dougaxe1