moderator-toolbox-nxg-for-reddit / modules/modmail/schema
modules/modmail/schema¶
Functions¶
normalizeRecentActivity()¶
normalizeRecentActivity(
map,kind):SidebarActivityItem[]
Defined in: extension/data/modules/modmail/schema.ts:42
Defensively narrows one of the recent* maps from the modmail /user response into a
date-descending list of view rows. Untyped/malformed entries are skipped rather than thrown.
Parameters¶
map¶
unknown
The raw keyed map (recentPosts, recentComments, or recentConvos).
kind¶
Which map this is, selecting how title/body are derived.