Skip to content

Redditor model should have a isFriend property #187

@donovanrost

Description

@donovanrost

The response for https://www.reddit.com/user/spez/about.json is:

    "kind": "t2",
    "data": {
        "is_employee": true,
        "is_friend": false,
        "subreddit": {
            "default_set": true,
            "user_is_contributor": null,
            "banner_img": "https://b.thumbs.redditmedia.com/KWeEpVxXOGLoloMbM0IxGt9EiKPXizpwFgcSeWqtpZM.png",
            "restrict_posting": true,
            "user_is_banned": null,
            "free_form_reports": true,
            "community_icon": null,
            "show_media": true,
            "icon_color": "",
            "user_is_muted": null,
            "display_name": "u_spez",
            "header_img": null,
            "title": "spez",
            "previous_names": [],
            "over_18": false,
            "icon_size": [
                256,
                256
            ],
            "primary_color": "",
            "icon_img": "https://b.thumbs.redditmedia.com/d7Sw-O_AOlxEtKEeMTrH0xcy9LbLOy0j_KrWGbOFB9w.png",
            "description": "",
            "submit_link_label": "",
            "header_size": null,
            "restrict_commenting": false,
            "subscribers": 0,
            "submit_text_label": "",
            "is_default_icon": false,
            "link_flair_position": "",
            "display_name_prefixed": "u/spez",
            "key_color": "",
            "name": "t5_3k30p",
            "is_default_banner": false,
            "url": "/user/spez/",
            "quarantine": false,
            "banner_size": [
                1280,
                384
            ],
            "user_is_moderator": null,
            "public_description": "Reddit CEO",
            "link_flair_enabled": false,
            "disable_contributor_requests": false,
            "subreddit_type": "user",
            "user_is_subscriber": null
        },
        "snoovatar_size": null,
        "awardee_karma": 68563,
        "id": "1w72",
        "verified": true,
        "is_gold": true,
        "is_mod": true,
        "awarder_karma": 958,
        "has_verified_email": true,
        "icon_img": "https://b.thumbs.redditmedia.com/d7Sw-O_AOlxEtKEeMTrH0xcy9LbLOy0j_KrWGbOFB9w.png",
        "hide_from_robots": false,
        "link_karma": 144972,
        "total_karma": 959378,
        "pref_show_snoovatar": false,
        "name": "spez",
        "created": 1118059200.0,
        "created_utc": 1118030400.0,
        "snoovatar_img": "",
        "comment_karma": 744885,
        "has_subscribed": true
    }
}```

notice the `is_friend field`. I don't believe that field is reflected in the model class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions