moderator-toolbox-nxg-for-reddit / modules/shared/redditElements/deriveStatus
modules/shared/redditElements/deriveStatus¶
Functions¶
deriveThingStatus()¶
deriveThingStatus(
thing):object
Defined in: extension/data/modules/shared/redditElements/deriveStatus.ts:15
Derives the moderation status and a human-readable “by spam / removed / approved / ban_note), so both components share this.
Parameters¶
thing¶
The raw Reddit comment or submission data object.
Returns¶
object
status - one of 'neutral' | 'approved' | 'removed' | 'spammed'; actionByOn - the
“by
actionByOn¶
actionByOn:
string
status¶
status:
ThingStatus