v2.1.0 - Zebra 🦓
This is the source code for Comment Castles v2.1.0.
Changelog
- Added 9 new API endpoints(get followed users, create comment, follow user, create post, edit comment, edit post, delete comment, unfollow user, and delete post).
- Refactored route, validation and database for create new post.
- Moved AJAX endpoint into its own route file.
- Redid layout of API documentation page.
- Added error messages and HTTP status codes for API errors.
- Refactored edit post.
- Defined config values for site URL and API URL.
- Hardcoded the postgres time zones into the config file so we don't have to SQL query them all the time.
- Used a single cookie for all settings when the user is logged out.
- Don't use an HTML h1 for the site logo, instead use h1 for page titles.
- Optimized delete post.
- Refactored draw post code.
- Added 4 new settings: post layout, posts per page, main background color and secondary background color.
- Used config values for site width default, min and max.
- Increased max site width from 1000 to 1500.
- Increased the size of the commenting textareas.
- Used small rounded corners for the main content area.
- Used config values for the js and css directories.
- Renamed the js and css directories to 'js' and 'css'.