• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Incorrect username displayed in profile comment tag

NixFifty

Well-known member
#1
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:


 

NixFifty

Well-known member
#3
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?