Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
20 lines
542 B
TypeScript
20 lines
542 B
TypeScript
// Module ID: 7365
|
|
// Function ID: 7366
|
|
// Name: SelfModUtils
|
|
// Dependencies: [1371, 2]
|
|
// Exports: isCurrentUserTeen
|
|
|
|
// Module 7365 (SelfModUtils)
|
|
import UserStore from "UserStore" /* 1371 */;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/self_mod/SelfModUtils.tsx");
|
|
|
|
export const isCurrentUserTeen = function isCurrentUserTeen() {
|
|
const currentUser = UserStore.getCurrentUser();
|
|
let nsfwAllowed;
|
|
if (currentUser != null) {
|
|
nsfwAllowed = currentUser.nsfwAllowed;
|
|
}
|
|
return false === nsfwAllowed;
|
|
};
|