I'm using realname for getting heartbeat activity in a view, replacing usenames by realnames through tokens, everything looks fine except the realname for flag content that isn't calculated right.

I've used both [flagging_user:realname-link] and [flagging_user:realname] but always get the username instead.

Token replacement is actually invoked (token_realname.inc) and with the correct $object in place (pointing to the right user) but the function realname_make_name doesn't replace the usernabe by a realname, I think it gets stuck in cache and gets the username from there.
The rest of token replacements of the site work fine (for ALL users), views, profiles, etc, except this one.

Steps for reproduce it
- Install Heartbeat, heartbeat flags, flag, realname, rules & views.
- Create a flag for content, i.e. bookmark and show the link in a node
- Create a view using Heartbeat activity view type and show the messages as field
- Create a rule that logs flag bookmarks to the code and logs heartbeat activity using one of the tokens [flagging_user:realname-link] or [flagging_user:realname]
- The view shows username instead of realname

Comments

hass’s picture

Issue summary: View changes
Status: Active » Closed (outdated)