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

Commits on Jan 14, 2016

  1. Call prepare_item_for_response() directly in Attachment C&U item

    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 committed Jan 14, 2016
    Configuration menu
    Copy the full SHA
    997e0b0 View commit details
    Browse the repository at this point in the history