Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redditor model should have a isFriend property #187

Open
donovanrost opened this issue Oct 16, 2020 · 0 comments
Open

Redditor model should have a isFriend property #187

donovanrost opened this issue Oct 16, 2020 · 0 comments

Comments

@donovanrost
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant