Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
user data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2009 at 03:59 UTC
Updated:
25 Jun 2009 at 22:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidAttached patch works for me locally, but I'm not sure if the user_load operation should happen sooner than this level. At least with this, a fully loaded user object is provided to theme('user_picture').
Comment #2
dave reidThe Gravatar bug report that I should reference is at #460662: Multiple warning with gravatar in OG faces.
Comment #3
merlinofchaos commentedPerforming a user_load() is really bad for performance and I am highly resistant to doing this.
Comment #4
dawehnerPerhaps gravatar could perform a hook_views_data_alter and change the handler of the user picture, to load all what gravatar needs.
But i think with a changed handler you also don't need a full user_load
Comment #5
merlinofchaos commentedAlso note that theme('user_picture') is also often called with a node, that only includes selected fields from the linked user. I think I will not fix this in Views. As dereine says, Gravatar can use views_data_alter and change the handler if it's really important.
Comment #6
dave reidYeah I agree with the solution for now. The issue with nodes and comments provided incomplete data has also bugged me and I'm probably going to work on a core patch that uses $node->account and $comment->account and provides full user account objects to theme('user_picture', ...).