TODO: Editing/deleting of blog post
Thu Sep 10 2009
Things that have to be done/fixed ASAP:
Editing of existing post by blog owner
Deleting of post (
when post is deleted, it affects the next post because next post's
prev_thred_id
is now points to deleted post... Also BLOG_INFO table has to be updated
- it has total_posts
per blog, last_post_timestamp, latest_post_id, which may also need to
be updated. Lastly,
the .rss file may have to be deleted in the deleted posts in among the
latest 25 posts)
Also deleting of post show not really delete it, just mark it as
deleted in a MESSAGES table, so it may be 'undeleted'
Editing of existing post - just present the same page as addblogpost
only the RTE will have the existing post in it. User will be able to change
body, title, weight, type, and date of 'when to
show' and 'expiration' date.
onPostEdit even should be fired using fileEvent dispatcher because .rss
file may have to be updated.
The deleting of post, closing it for new comments may also be done from
the personal page (with list of posts) by using small buttons that will
trigger some ajax based prompts. This will require
the use of security tokens to avoid XSS hacks.