Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

17
Reddit API error: "domain" parameter not being properly reflected for media submissions made directly to Reddit.
Post Body

I caught this with my API:

https://www.reddit.com/r/Overwatch/comments/8g12be/hell_yeah_going_hog_as_well_hog/?st=jgnushga&sh=abba65b1

This has been stuck in "processing" for 22 hours. Also, if you look at reddit's API for this id (t3_8g12be), you'll see the domain value is wrong: https://api.reddit.com/api/info.json?id=t3_8g12be

The domain shows: /r/Overwatch/comments/8g12be/hell_yeah_going_hog_as_well_hog/

It appears the permalink value is also being placed in the domain field for some reason. This is affecting multiple submissions.

Here is an example of quite a few: This is an aggregation of submissions to /r/overwatch by domain for a 24 hour period. If you scroll down, you will see a lot of domains that contain the permalink value instead of the reddit media domain:

https://api.pushshift.io/reddit/search/submission/?aggs=domain&subreddit=overwatch&before=1525190453&after=1525104053

Clarification: It appears that when a submission is made to v.redd.it, the domain parameter is populated with the permalink value until processing of the submission is completed. Submissions stuck in processing never receive the correct value for domain which should be "v.redd.it"

In my opinion, the domain value should be set to v.reddit.it immediately even if the submission is still processing. The domain value should never be anything but a domain.

The best temp fix I can think of for Python when dealing with this would be something like:

# Fix Reddit API Domain bug for v.redd.it submissions
if submission['domain'].startswith('/r/') and submission['is_video'] is True:
    submission['domain'] = 'v.redd.it'

Thank you!

Author
Account Strength
100%
Account Age
11 years
Verified Email
No
Verified Flair
No
Total Karma
143,730
Link Karma
34,810
Comment Karma
108,242
Profile updated: 2 hours ago
Posts updated: 6 months ago
Pushshift.io data scientist

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago