Fixed Incorrect username displayed in profile comment tag

Naz

XenForo developer
Staff member
Imagine you have 4 people (A, B, C, D). To reproduce:

1) User B creates a profile post on User A's profile
2) User C comments on User B's profile post tagging User D
3) User D gets an alert saying User B tagged them in a comment on User A's profile. User B created the profile post, not the comment. The alert should say User C tagged them.

Example:
hiozfZ5.png


RsCE372.png
 
Fixed now, thanks.

Note to developers: this has required a method signature change to XenForo_Model_ProfilePost::alertTaggedMembers() to pass in the user doing the tagging (optionally).
If the change isn't too drastic, do you think you'd be able to post the changed code here please?
 
Top Bottom