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! :)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | doc_improvement.patch | 843 bytes | berdir |
Comments
Comment #1
liam mcdermott commentedComment #2
berdirPerformance 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).
Comment #3
berdirComment #4
naheemsays commentedwithout actually testing - its a comment and it makes sense.
Comment #5
berdirCommited against 6.x-1.x-dev and 7.x-1.x-dev