forked from reddit-archive/reddit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AutoMod: improved handling for media data
There were several issues occuring related to rules that require data from the media embed (which is added on to Link objects asynchronously by the media scraper). Items are re-checked by AutoMod when the scraper adds an item, but some rules that required that data were still being checked and executed anyway before it had actually completed, so were not behaving correctly. This change makes the checks to see if the rule needs the data from the media object more robust, which should ensure that these rules are never processed until the item comes into the queue again when the scraper attaches the embed data.
- Loading branch information
Showing
1 changed file
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters