update footer and allow 32 char shortcode

This commit is contained in:
Wavering Ana 2025-01-29 00:13:20 -05:00
parent 6ebaba50d1
commit 5e83c1218b
3 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,3 @@
version: '3.8'
services: services:
db: db:
image: postgres:15-alpine image: postgres:15-alpine

View file

@ -36,7 +36,7 @@ export function Footer() {
</Button> </Button>
<Button variant="ghost" size="icon"> <Button variant="ghost" size="icon">
<a href="https://l.nekomimi.pet/twitter?source=shortener" target="_blank" rel="noopener noreferrer"> <a href="https://l.nekomimi.pet/bsky?source=shortener" target="_blank" rel="noopener noreferrer">
<SiBluesky className="h-4 w-4" /> <SiBluesky className="h-4 w-4" />
</a> </a>
<span className="sr-only">Twitter</span> <span className="sr-only">Twitter</span>

View file

@ -182,7 +182,7 @@ fn generate_short_code() -> String {
use uuid::Uuid; use uuid::Uuid;
let uuid = Uuid::new_v4(); let uuid = Uuid::new_v4();
encode(uuid.as_u128() as u64).chars().take(8).collect() encode(uuid.as_u128() as u64).chars().take(32).collect()
} }
pub async fn register( pub async fn register(