Rose Fox (rosefox) wrote in lj_dev,
Rose Fox
rosefox
lj_dev

  • Mood:

Comment deletion with S2

(posted to lj_nifty and lj_dev, since I thought it would be nice to post about something that does work for once)

In the appropriate place in function EntryPage :: print_comment (Comment c ), insert this:

if (viewer_is_owner() ) {
"delete comment" ;
}


I don't think it lets people delete their own comments, but I'm not sure; please feel free to comment to something in my journal and see if the "pull weeds" link appears on the comment for you (and let me know either way). At the very least it does let journal owners delete comments to their journals, which I think is the most important thing!
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 4 comments