Sort posts by timestamp
Adding a edit method
Add permission checking for post owner