Missing User Name in User's Activity Stream Title

spiffyd - July 28, 2008 - 07:14
Project:Activity Stream
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

On a user's stream page, I notice the User Name is missing. Instead of "USERNAME's Activity Stream", the title reads "'s Activity Stream" Any one else have this problem?

#1

eojthebrave - July 29, 2008 - 00:50

I was able to re-create this problem by navigating to /stream/, looks like the code is performing a lookup of the user based on uid, and expects the second part of the path to be a users UID.

spiffyd, can you confirm that going to /stream/ work's as expected?

#2

spiffyd - July 29, 2008 - 03:59

@eojthebrave

Going to /stream/ works fine. "All users' Activity Streams" is shown. The issue is just with individual users.

#3

akalsey - July 31, 2008 - 03:53
Status:active» fixed

Found it...

This happened when going to a stream item's node page, then clicking the breadcrumb link to return to the user's stream. The breadcrumb link was using $user->name instead of $user->uid

Fixed in 5.x

#4

akalsey - July 31, 2008 - 17:36
Status:fixed» closed

And now fixed in 6.x as well

#5

spiffyd - August 6, 2008 - 00:37
Status:closed» active

The bug is still present in the latest release for the specific user's stream: http://example.com/stream/USER

Only " 's Activity Stream" is displayed.

http://example.com/stream works fine though. "All users' Activity Streams" is displayed.

#6

akalsey - August 6, 2008 - 05:12

How are you getting to that URL? Activity Stream URLs (and pretty much everything else in Drupal) are in the format /stream/UID not /stream/USERNAME

#7

akalsey - August 6, 2008 - 06:20
Status:active» active (needs more info)

#8

spiffyd - August 6, 2008 - 08:36
Status:active (needs more info)» closed

@akalsey You're right. I was confused between USERNAME and UID. UID (which is a #) works.

 
 

Drupal is a registered trademark of Dries Buytaert.