#6489 closed defect (bug) (fixed)
Messages star action links do not work for displayed users
| Reported by: | johnjamesjacoby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3.2 |
| Component: | Messages | Version: | 2.3.0 |
| Severity: | normal | Keywords: | commit |
| Cc: |
Description
bp_get_the_message_star_action_link() incorrectly assumes that links will always be for the current user. In order for this link to appear correctly for displayed users, one must explicitly pass a user ID into the function. This goes against all other links of these types.
Consequently down the line, the:
} else if ( $r['user_id'] == bp_displayed_user_domain() ) {
...check will never pass.
Attachments (1)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Ugh, my bad about
else if ( $r['user_id'] == bp_displayed_user_domain() ) {.Definitely commit the patch!
I should point out that the messages component hardcodes the current user ID for many functions and actions. I guess this would be a good time to clean this up for v2.4.