Merge remote-tracking branch 'origin/flowControl' into flowControl

# Conflicts:
#	src/Check/index.ts
#	src/Subreddit/Manager.ts
#	src/util.ts
This commit is contained in:
FoxxMD
2022-02-09 13:12:52 -05:00

View File

@@ -1575,7 +1575,7 @@ export const snooLogWrapper = (logger: Logger) => {
* Cached activities lose type information when deserialized so need to check properties as well to see if the object is the shape of a Submission
* */
export const isSubmission = (value: any) => {
return value instanceof Submission || (value.id !== undefined && value.id.includes('t3_')) || value.name.includes('t3_');
return value instanceof Submission || (value.id !== undefined && value.id.includes('t3_')) || value.domain !== undefined;
}
export const asSubmission = (value: any): value is Submission => {