def _remove_protected_fields(appstruct):
    for field in ['created', 'updated', 'user', 'id', 'links', 'flagged', 'hidden', 'moderation', 'user_info']:
        appstruct.pop(field, None)
def _remove_protected_fields(appstruct):
    for field in ['created', 'updated', 'user', 'id', 'links', 'flagged', 'hidden', 'moderation', 'user_info']:
        appstruct.pop(field, None)