feat(admin,branding): Add favicon support and video blur component
- Add favicon_url column to nodes table via database migration - Create favicon upload endpoint with media handling - Implement favicon upload UI in admin panel with preview - Add favicon removal functionality in admin settings - Create BlurredVideo component for improved video rendering - Update PostCard to use new BlurredVideo component - Update node schema to include favicon_url field - Add favicon upload state management and error handling - Enables customization of browser tab icon for node branding
This commit is contained in:
@@ -24,6 +24,7 @@ export async function PATCH(req: NextRequest) {
|
||||
rules: data.rules,
|
||||
bannerUrl: data.bannerUrl,
|
||||
logoUrl: data.logoUrl,
|
||||
faviconUrl: data.faviconUrl,
|
||||
accentColor: data.accentColor,
|
||||
isNsfw: data.isNsfw ?? false,
|
||||
}).returning();
|
||||
@@ -36,6 +37,7 @@ export async function PATCH(req: NextRequest) {
|
||||
rules: data.rules,
|
||||
bannerUrl: data.bannerUrl,
|
||||
logoUrl: data.logoUrl,
|
||||
faviconUrl: data.faviconUrl,
|
||||
accentColor: data.accentColor,
|
||||
isNsfw: data.isNsfw ?? node.isNsfw,
|
||||
updatedAt: new Date(),
|
||||
|
||||
Reference in New Issue
Block a user