I have 'admin' who can create, update and delete all posts and comments, 'user' who can create and update only his own comments, and 'guest' who can do none of these.
我有'管理员'谁可以创建,更新和删除所有文章和评论,“用户”谁可以创建和更新只是他自己的意见,和'客人',谁可以做所有这些。
These additions allows authenticated users to view their public feed, interactively add new posts to it, or delete existing ones from it-all without using the Google Buzz interface.
添加的这些代码允许经过身份认证的用户查看他们的公共提要,交互地添加新帖子,或者删除现有帖子—所有这些操作都无需使用Google buzz界面。
Now all you need to do is add code to the main method to delete any posts older than 30 days.
现在只需要把代码添加到main方法中来删除发布超过30天的所有post。
应用推荐