Documentation of _privatemsg_generate_user_array() says:

  // convert user uid list (uid1,uid2,uid3) into an array and only load the last 4 uids.
  $users = array_slice(explode(',', $userstring), -4);

Could more be added to this saying why we only get the last 4 uid's? Is it arbitrary?

Good on you for documenting it at all, however! :)

CommentFileSizeAuthor
#3 doc_improvement.patch843 bytesberdir

Comments

liam mcdermott’s picture

Issue tags: +348907
berdir’s picture

Performance reasons, we only display 4 authors per thread, we shouldn't load all others.

Imho, we should think about "fake" user objects (stdClass with username and uid) when we only want to use them for theme('username'). We could also use a query per thread row, because we could then limit it in the query (which is not possible with GROUP_CONCAT).

berdir’s picture

Status: Active » Needs review
StatusFileSize
new843 bytes
naheemsays’s picture

Status: Needs review » Reviewed & tested by the community

without actually testing - its a comment and it makes sense.

berdir’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Commited against 6.x-1.x-dev and 7.x-1.x-dev

Status: Fixed » Closed (fixed)
Issue tags: -348907

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