@@ -1027,7 +1027,8 @@ import {
10271027 UserIcon ,
10281028 UserPlusIcon ,
10291029 UsersIcon ,
1030- VideoCameraIcon
1030+ VideoCameraIcon ,
1031+ Cog6ToothIcon
10311032} from ' @heroicons/vue/24/outline'
10321033import DropdownDivider from ' @/components/DropdownDivider.vue'
10331034import AdminSendEmailModal from ' @/components/Admin/AdminSendEmailModal.vue'
@@ -1179,7 +1180,8 @@ const userAuditTypeLabels = {
11791180 profile_links_add: ' New Profile Link' ,
11801181 profile_links_delete: ' Profile Link Deleted' ,
11811182 push_notifications_enabled: ' Push Notifications enabled' ,
1182- push_notifications_disabled: ' Push Notifications disabled'
1183+ push_notifications_disabled: ' Push Notifications disabled' ,
1184+ content_settings: ' Content settings updated'
11831185}
11841186
11851187const userAuditTypeIcons = {
@@ -1198,13 +1200,15 @@ const userAuditTypeIcons = {
11981200 profile_links_add: LinkIcon,
11991201 profile_links_delete: LinkIcon,
12001202 push_notifications_enabled: BellAlertIcon,
1201- push_notifications_disabled: BellSlashIcon
1203+ push_notifications_disabled: BellSlashIcon,
1204+ content_settings: Cog6ToothIcon
12021205}
12031206
12041207const userAuditTypeStyles = {
12051208 atom_enabled: ' bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300' ,
12061209 atom_disabled: ' bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300' ,
12071210 avatar_updated: ' bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300' ,
1211+ content_settings: ' bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300' ,
12081212 avatar_deleted: ' bg-amber-50 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300' ,
12091213 profile_links_delete: ' bg-amber-50 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300' ,
12101214 password_changed: ' bg-red-50 text-red-700 dark:bg-red-900/30 dark:text-red-300' ,
@@ -1666,6 +1670,30 @@ const UserAuditDiff = {
16661670 )
16671671 }
16681672
1673+ if (e .type === ' content_settings' ) {
1674+ const contentSettingsType = Object .hasOwn (e .value .new , ' hide_sensitive' )
1675+ ? ' nsfw'
1676+ : ' ai'
1677+ if (contentSettingsType === ' nsfw' ) {
1678+ return rowWrap (
1679+ inlineRow ([
1680+ monoLabel (' Hide Sensitive:' ),
1681+ badge (false , e .value .old .hide_sensitive ),
1682+ arrow (),
1683+ badge (true , e .value .new .hide_sensitive )
1684+ ])
1685+ )
1686+ }
1687+ return rowWrap (
1688+ inlineRow ([
1689+ monoLabel (' Hide AI:' ),
1690+ badge (false , e .value .old .hide_ai ),
1691+ arrow (),
1692+ badge (true , e .value .new .hide_ai )
1693+ ])
1694+ )
1695+ }
1696+
16691697 if (e .type === ' starter_kit_state' ) {
16701698 return rowWrap (
16711699 inlineRow ([
0 commit comments