0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core
Katharina Irrgang 7273786459
Fetch relations by default when insert/updating posts (#9568)
no issue

- required for model events
- otherwise you won't receive a full data set
  - in worst case you have to re-fetch the post
- required for the url service
  - the url service always needs relations (authors,tags) to be able to generate the url properly

@IMPORTANT
- no API change, we still return what you are asking for
  - we first edit/add the resource
  - then we fetch the data with the API options
  - @TODO: this can be optimised and will improve performance
    	   picking/selecting it from the insert/update response
- this is an internal change
2018-04-15 12:12:20 +02:00
..
client@5984156fc6 Updated Ghost-Admin to 1.22.2 2018-04-11 22:35:59 +02:00
server Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
test Fetch relations by default when insert/updating posts (#9568) 2018-04-15 12:12:20 +02:00
index.js