LJ::want_user

LJ::want_user — Returns user object when passed either userid or user object. Useful to functions that want to accept either.

Use

LJ::want_user(user);

Arguments

  • user. Either a userid or a user hash with the userid in its 'userid' key.

Source:

cgi-bin/LJ/User.pm

Returns:

The user object represented by said userid or username.