As the title implies, if I am viewing a user that hasnt entered a status yet, the name and status information is captured for the me.

So, Steve is looking at Joe's user page, and Joe hasnt entered a status yet. I would see:

Steve
is testing the status module
5 minutes ago

Additionally, if I'm Joe, and I look at my user page (without having entered a status yet), I see:

Anonymous 
does not have a status.
Joe (input form) (save button)

Comments

omnimole’s picture

Came here to post the same bug. Just upgraded to the new version and noticed this. I don't think it was doing this on the previous version.

icecreamyou’s picture

Title: User with no status inherits currently logged in user's status » Users with no statuses see "Anonymous does not have a status"
Status: Active » Fixed

The first part is probably not a bug. The status update block shows the current user's status unless Legacy Mode is set. On the demo site Legacy Mode is set for user profiles, and you can see that the problem you've reported does not occur. I can't reproduce this on user profiles (i.e. without using the block) either.

The second part (that users with no statuses see "Anonymous does not have a status") is a bug, and I've just committed a fix to dev.

omnimole’s picture

Yup, it was the legacy option for 'nodes' doing it for me. Thanks!

benjaminlhaas’s picture

I just grabbed the latest dev version, and I'm still seeing this "anonymous" issue. Anything I need to do to make it work? What exactly was the patch?

icecreamyou’s picture

The dev with the changed code wasn't generated yet when you downloaded the tarball. Try getting it now, and clearing your cache on both your browser and Drupal.

I believe the change was namely to replace the function _facebook_status_get_status_fast() with this:

function _facebook_status_get_status_fast($uid) {
  $status = db_fetch_object(db_query("SELECT * FROM {facebook_status} WHERE uid = %d AND pid = %d ORDER BY sid DESC", $uid, $uid));
  if (!$status) {
    $status = (object) array('uid' => $uid, 'pid' => $uid, 'status' => '', 'status_time' => 0);
  }
  return $status;
}

...the problem being that theme('facebook_status_form_display') would pass an empty status to theme('facebook_status_item', $status) if the user hadn't submitted any statuses yet.

benjaminlhaas’s picture

Aha, I jumped the gun by just a bit. Thanks for the fix!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.