Skip to content

Commit d6d5449

Browse files
committed
wooo 50 gigs
1 parent 4ca259b commit d6d5449

8 files changed

Lines changed: 2620 additions & 9 deletions

File tree

app/onboarding/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export default function OnboardingPage() {
351351
Storage Limits
352352
</h3>
353353
<p className="text-xs text-zinc-400 leading-relaxed">
354-
Accounts start with a default quota to prevent abuse.
354+
Accounts start with 50GB by default to prevent abuse.
355355
</p>
356356
</div>
357357
</div>

app/users/[username]/UserProfileClient.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default function UserProfileClient({
183183
const videoCount = uploads.filter((m) =>
184184
m.mimeType.startsWith("video/"),
185185
).length;
186-
const storageLimit = user.storageLimit || 20 * 1024 * 1024 * 1024;
186+
const storageLimit = user.storageLimit || 50 * 1024 * 1024 * 1024;
187187
const isUnlimited = user.storageLimit === -1 || user.isGlobalAdmin;
188188
const storagePercentage = isUnlimited
189189
? 0
@@ -316,7 +316,7 @@ export default function UserProfileClient({
316316
Storage Policy
317317
</p>
318318
<p>
319-
The default limit is 20GB to prevent abuse. If you
319+
The default limit is 50GB to prevent abuse. If you
320320
need more space for legitimate use, just ask an
321321
admin! We'd love to upgrade you! :)
322322
</p>

components/admin/EditUserModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function EditUserModal({
6969
});
7070
const [storageMode, setStorageMode] = useState<"preset" | "custom">(() => {
7171
const val = user.storageLimit.toString();
72-
return ["21474836480", "107374182400", "-1"].includes(val)
72+
return ["53687091200", "107374182400", "-1"].includes(val)
7373
? "preset"
7474
: "custom";
7575
});
@@ -173,9 +173,9 @@ export default function EditUserModal({
173173
if (formData.storageLimit === "-1") {
174174
setFormData({
175175
...formData,
176-
storageLimit: "21474836480",
176+
storageLimit: "53687091200",
177177
});
178-
setCustomGb("20");
178+
setCustomGb("50");
179179
} else {
180180
const currentBytes = parseInt(
181181
formData.storageLimit,
@@ -198,7 +198,7 @@ export default function EditUserModal({
198198
}}
199199
className="bg-zinc-900 border border-zinc-800 rounded-lg px-3 py-2 text-white focus:outline-none focus:border-red-600 transition-all"
200200
>
201-
<option value="21474836480">Default (20GB)</option>
201+
<option value="53687091200">Default (50GB)</option>
202202
<option value="107374182400">100GB</option>
203203
<option value="-1">Unlimited</option>
204204
<option value="custom">Custom</option>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE "users" ALTER COLUMN "storage_limit" SET DEFAULT 53687091200;
2+
UPDATE "users" SET "storage_limit" = 53687091200 WHERE "storage_limit" = 21474836480;

0 commit comments

Comments
 (0)