mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user