LJ::delete_all_comments

LJ::delete_all_comments — deletes all comments from a post, permanently, for when a post is deleted

Use

LJ::delete_all_comments(u, nodetype, nodeid);

Arguments

  • u. A hashref of a row from the user table, sometimes called a "user object". Although only initially a row from the user table, gets a lot of tacked onto it from various other LJ API functions.

  • nodetype. The thread nodetype (probably 'L' for log items).

  • nodeid. The thread nodeid for the given nodetype (probably the jitemid from the log2 row).

Info

The tables talk2, talkprop2, talktext2, are deleted from, immediately.

Source:

cgi-bin/LJ/User.pm

Returns:

boolean; success value