Skip to content

Commit

Permalink
🚧 Limit avatar uploads to cloud hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
lukevella committed Oct 7, 2024
1 parent 874c4d1 commit 18dbb75
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useTranslation } from "@/app/i18n/client";
import { OptimizedAvatarImage } from "@/components/optimized-avatar-image";
import { Trans } from "@/components/trans";
import { useUser } from "@/components/user-provider";
import { IfCloudHosted } from "@/contexts/environment";
import { usePostHog } from "@/utils/posthog";
import { trpc } from "@/utils/trpc/client";

Expand Down Expand Up @@ -191,7 +192,9 @@ export function ProfilePicture() {
name={user.name}
size="lg"
/>
<Upload />
<IfCloudHosted>
<Upload />
</IfCloudHosted>
</div>
);
}

0 comments on commit 18dbb75

Please sign in to comment.