LJ::add_friend

LJ::add_friend — Simple interface to add a friend edge.

Use

LJ::add_friend(uuid, to_add, opts);

Arguments

  • uuid. 

  • to_add. a single uuid or an arrayref of uuids to add (befriendees)

  • opts. hashref; 'defaultview' key means add target uuids to $uuid's Default View friends group, 'groupmask' key means use this group mask

Source:

cgi-bin/LJ/User.pm

Returns:

boolean; 1 on success (or already friend), 0 on failure (bogus args)