Closed (fixed)
Project:
Drupal Commons
Component:
Activity/status streams
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
14 Dec 2012 at 07:20 UTC
Updated:
22 Feb 2013 at 22:40 UTC
Jump to comment: Most recent file
Rather than at message creation time, otherwise we get stale usernames in the activity stream.
Comments
Comment #1
jacquelynfisher commentedI am wondering if this is the reason that some old notices under Recent Site Activity are not displaying the usernames properly. (See screenshot). New notices by said user are displaying properly, and the only thing that came to mind was that the username was changed.
So if user tokens are replaced when the message is sent and not when the page is rendered, this might be why the username in the old notices (before the username change) are not displaying.
Comment #2
jpontani commentedComment #3
jpontani commentedCommitted to Wikis, and patches attached.
Using the @{message:user:name} token stores the username on the message at creation time, whereas using [message:user:name] token replaces it at render time.
http://drupalcode.org/project/commons_wikis.git/commitdiff/aea9f37
Comment #4
jpontani commentedDisregard the Commons Activity Streams patch from above, it got messed up and included some incorrect stuff. Attached is the correct patch.
Comment #5
ezra-g commentedLooks good to me.
Comment #6
jpontani commentedCommitted.
http://drupalcode.org/project/commons_activity_streams.git/commitdiff/cf...
http://drupalcode.org/project/commons_like.git/commitdiff/228592f
http://drupalcode.org/project/commons_follow.git/commitdiff/0fd601e
http://drupalcode.org/project/commons_q_a.git/commitdiff/306d9a0