2026-08-06 08:05:19 +00:00
|
|
|
// Module ID: 5829
|
|
|
|
|
// Function ID: 5830
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isCurrentUserTeen
|
2026-08-06 08:05:19 +00:00
|
|
|
// Dependencies: [1903, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isCurrentUserTeen
|
|
|
|
|
|
2026-08-06 08:05:19 +00:00
|
|
|
// Module 5829 (isCurrentUserTeen)
|
2026-07-29 08:29:29 +00:00
|
|
|
import mergeGuildAvatar from "mergeGuildAvatar";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/self_mod/SelfModUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const isCurrentUserTeen = function isCurrentUserTeen() {
|
2026-07-23 10:11:24 +00:00
|
|
|
currentUser = currentUser.getCurrentUser();
|
2026-07-20 16:05:17 +00:00
|
|
|
let nsfwAllowed;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (currentUser != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
nsfwAllowed = currentUser.nsfwAllowed;
|
|
|
|
|
}
|
|
|
|
|
return false === nsfwAllowed;
|
|
|
|
|
};
|