Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Call prepare_item_for_response() directly in Attachment C&U item #2040

Merged
merged 1 commit into from Jan 15, 2016

Conversation

danielbachhuber
Copy link
Member

This lets us pass the original request through to
prepare_item_for_response(), giving it genuine context, and avoids an
unnecessary call to get_item()

This commit also ensures a full attachment object is passed to
rest_insert_attachment, not the fake one we've been concocting

This lets us pass the original request through to
`prepare_item_for_response()`, giving it genuine context, and avoids an
unnecessary call to `get_item()`

This commit also ensures a full attachment object is passed to
`rest_insert_attachment`, not the fake one we've been concocting
@danielbachhuber danielbachhuber added this to the 2.0 Beta 11 milestone Jan 14, 2016
danielbachhuber added a commit that referenced this pull request Jan 15, 2016
Call `prepare_item_for_response()` directly in Attachment C&U item
@danielbachhuber danielbachhuber merged commit 4a78c3d into develop Jan 15, 2016
@danielbachhuber danielbachhuber deleted the clean-up-internal-attachment-get branch January 15, 2016 00:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant