2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 5005
|
|
|
|
|
// Function ID: 5006
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isCurrentUserTeen
|
2026-08-11 06:20:06 +00:00
|
|
|
// Dependencies: [1922, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isCurrentUserTeen
|
|
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 5005 (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;
|
|
|
|
|
};
|