LJ::journal_base

LJ::journal_base — Returns URL of a user's journal.

Use

LJ::journal_base(uuser, vhost);

Arguments

  • uuser. LJ::User object, user hashref or username of user whose URL to make.

  • vhost. What type of URL. Acceptable options: "users", to make a http://user.example.com/ URL; "tilde" for http://example.com/~user/; "community" for http://example.com/community/user; or the default will be http://example.com/users/user. If unspecified and uuser is a user hashref, then the best/preferred vhost will be chosen.

Info

The tricky thing is that users with underscores in their usernames can't have some_user.example.com as a hostname, so that's changed into some-user.example.com.

Source:

cgi-bin/LJ/User.pm

Returns:

scalar; a URL.