update footer and allow 32 char shortcode
This commit is contained in:
parent
6ebaba50d1
commit
5e83c1218b
3 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
version: '3.8'
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue