mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: seo optimizations + opengraph embeds
fix: nullable AuthorUUIDs; assign admins member & mod role
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
|
||||
export const load: PageServerLoad = async ({ fetch }) => {
|
||||
export const load: PageServerLoad = async ({ fetch,url }) => {
|
||||
try {
|
||||
const res = await fetch('/api/paste/create/options');
|
||||
const options = await res.json();
|
||||
return { options };
|
||||
return { options, url: url.href };
|
||||
} catch {
|
||||
return { options: null };
|
||||
return { options: null, url: url.href };
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user