Ghost/core/server/models/base
Aileen Nowak 1da2eec915 🐛Fixed image properties to be reset to null after removal (#9432)
closes #9085

Fixes an issue, where the client sets image properties to `""` after deleting the image. This causes problems with the query filter (see https://github.com/TryGhost/GQL/issues/24), as they have to be `null`.

Added a check in the model layer saving method to set value  to `null`, when the property is empty.

Affected models and properties:
- `posts`:
	- `feature_image`
	- `og_image`
	- `twitter_image`
- `users`:
	- `profile_image`
	- `cover_image`
- `tags`:
	- `feature_image`
2018-03-05 09:10:27 +01:00
..
index.js 🐛Fixed image properties to be reset to null after removal (#9432) 2018-03-05 09:10:27 +01:00
listeners.js Avoid knex warning when destroying a user 2018-01-27 12:31:51 +01:00
token.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
utils.js Import lib/common only 2017-12-12 10:28:13 +01:00