         # Other types don't have the `type` property, so this needs to be
         # removed from the query for the filtering to work correctly.
         _url = ENDPOINTS[query.type]
-        unless query.type in [ENTRY, PACKAGE]
+        unless query.type in [ENTRY, PACKAGE, PERSON, TOPIC, LOCATION]
             delete query.type
 
         results = []

            SDKError.log("Got #{ result.length } channels from API.")
            cb?(result)

    ENTRY   : ENTRY
    PACKAGE : PACKAGE
    POST    : POST
    CHANNEL : CHANNEL
    IMAGE   : IMAGE
    TEXT    : TEXT
    EMBED   : EMBED

module.exports = ContentAPI

ENTRY       = 'container'
PACKAGE     = 'package'
POST        = 'post'
CHANNEL     = 'channel'
IMAGE       = 'image'
TEXT        = 'text'
EMBED       = 'embed'
TOPIC       = 'topic'
LOCATION    = 'location'
PERSON      = 'person'

ENDPOINTS =
    container   : 'releases/'
    package     : 'releases/'
    post        : 'posts/'
    channel     : 'channels/'
    person      : 'entities/'
    topic       : 'entities/'
    location    : 'entities/'


fs      = require 'fs'
