xwp / stream

🗄️ Stream plugin for WordPress
https://wordpress.org/plugins/stream/
GNU General Public License v2.0
405 stars 119 forks source link

"Comment author" field is displayed incorrectly for comment moderation actions #1428

Closed goldenapples closed 10 months ago

goldenapples commented 1 year ago

Bug Report

When the option "Users must be registered and logged in to comment" is enabled, then actions such as comment moderation, editing, or deleting show the moderator's name instead of the comment authod.

Expected Behavior

If an administrator "administrator" marks a comment by "user" as spam, I would expect the Stream audit log to display something like

user's comment on "Post title" marked as spam

Actual Behavior

Instead the log entry reads

administrator's comment on "Post title" marked as spam

Steps to Reproduce the Problem

  1. This only happens if the option "comment_registration" option is enabled, because in that case the comment author is defined as the current user here.