LJ::leave_community

LJ::leave_community — Makes a user leave a community. Takes care of all reluser relationships and friend stuff.

Use

LJ::leave_community(uuserid, ucommid, defriend);

Arguments

  • uuserid. a userid or u object of the user doing the leaving.

  • ucommid. a userid or u object of the community being left.

  • defriend. remove comm from user's friends list.

Source:

cgi-bin/communitylib.pl

Returns:

1 if success, 0 if error, and error/message if need