0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core
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
..
client Disabled styles for disabled buttons 2014-01-03 22:13:02 +01:00
server Fixing 404 on page view when using PostgreSQL 2014-01-05 10:10:43 -05:00
shared Modified github.js to ensure __ isn't escaped at beginning of line 2014-01-03 09:45:40 -05:00
test Merge pull request #1821 from schneidmaster/fix-1791 2014-01-04 11:13:37 -08:00
index.js Restore support for using ghost as a npm module fixes #1326 2013-11-27 17:39:14 +00:00