Add call to method for post submission
- If an error occurs, the user will be alerted of the error
- If no error occurs, the user is redirected to the newly created post
- The function calls a Method called post, which will be defined in the next commit
Add post method to application
- Ensures that the user is logged in
- Ensures that the post has a title
- Check that no previous post has the same link
- Picks out the whitelisted keys
- If all those are valid, the post will be submitted to DB
- Returns userID at the end
Merge pull request #17 from alexanderdavidpan/Use_Method_To_Submit_Post

Create and use method to submit post