even more plugin fixes
This commit is contained in:
parent
2133823bd3
commit
dddb28192c
2 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,8 @@ import { fetchPronouns, formatPronouns } from "../pronoundbUtils";
|
|||
import { PronounMapping, UserProfilePronounsProps, UserProfileProps } from "../types";
|
||||
|
||||
export default function PronounsProfileWrapper(PronounsComponent: React.ElementType<UserProfilePronounsProps>, props: UserProfilePronounsProps, profileProps: UserProfileProps) {
|
||||
if (!profileProps) return null;
|
||||
|
||||
const user = UserStore.getUser(profileProps.userId) ?? {};
|
||||
// Don't bother fetching bot or system users
|
||||
if (user.bot || user.system) return null;
|
||||
|
|
|
@ -36,6 +36,8 @@ export default definePlugin({
|
|||
authors: [Devs.Ven],
|
||||
description: "Makes Avatars/Banners in user profiles clickable, and adds Guild Context Menu Entries to View Banner/Icon.",
|
||||
|
||||
dependencies: ["MenuItemDeobfuscatorApi"],
|
||||
|
||||
openImage(url: string) {
|
||||
const u = new URL(url);
|
||||
u.searchParams.set("size", "512");
|
||||
|
|
Loading…
Reference in a new issue