Ghost/core/server
Lev Gimelfarb a0ace7a324 Fixing 404 on page view when using PostgreSQL
closes #1801
- adding fixBools method to `server/models/base.js` to convert bools to 1/0 to be consistent with MySQL & sqlite3 data providers (based on @ErisDS recommendation)
- this in turn fixes the check in `server/controllers/frontend.js`, which does an explicit `post.page === 0` comparison (in pgsql this is a `boolean`, since the schema declares it as "bool" in `server/data/schema.js`, but MySQL/sqlite3 don't have concept of Boolean, only an integer or bit)
- any model retrieved from persistence will pass through this (possible future refactoring is to combine fixBools & fixDates into one "canonicalize()" to have a single loop pass)
2014-01-05 10:10:43 -05:00
..
api Fix routing of posts and static pages 2013-12-30 02:04:46 -05:00
config Move config path.update to config.load 2014-01-02 20:29:49 +00:00
controllers Adds ability to quickly get to post’s edit page 2014-01-03 18:16:00 -05:00
data Update import tool to be safe 2013-12-29 13:23:23 +00:00
helpers Fix {{content words=“0”}} to actually return 0 words 2014-01-04 00:30:52 -05:00
middleware Error handling simplification & test improvements 2014-01-02 21:03:37 +00:00
models Fixing 404 on page view when using PostgreSQL 2014-01-05 10:10:43 -05:00
permissions Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00
plugins Remove ghost.js 2013-12-07 10:10:02 -05:00
routes Adds ability to quickly get to post’s edit page 2014-01-03 18:16:00 -05:00
storage Cache control headers & query string asset management 2014-01-02 12:14:33 +00:00
views Delete all content (posts and tags) 2013-12-25 01:05:20 +01:00
bookshelf-session.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00
errorHandling.js Added handling for undefined errors and test coverage 2014-01-03 15:07:08 -05:00
filters.js This commit removes a lot of code from ghost.js, including: 2013-11-28 09:21:53 -05:00
index.js Move config path.update to config.load 2014-01-02 20:29:49 +00:00
mail.js Fix unhandled errors in mail.js 2013-12-20 12:57:21 +00:00
require-tree.js Remove unparam:true from jslint config in Gruntfile.js 2013-10-31 14:02:34 -04:00