Skip to content

Commit

Permalink
Fix description for social networks
Browse files Browse the repository at this point in the history
  • Loading branch information
hejny committed Dec 1, 2023
1 parent c47def1 commit ca3a84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AppHead/WallpaperAppHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useRouter } from 'next/router';
import { ReactNode, useContext } from 'react';
import { NEXT_PUBLIC_URL } from '../../../config';
import { AnalyticsAndIntegrations } from '../../components/AnalyticsAndIntegrations/AnalyticsAndIntegrations';
import { extractDescriptionFromHtml } from '../../utils/content/extractDescriptionFromHtml';
import { extractDescriptionFromContent } from '../../utils/content/extractDescriptionFromContent';
import { ExportContext } from '../../utils/hooks/ExportContext';
import { useCurrentWallpaper } from '../../utils/hooks/useCurrentWallpaper';
import { ExportCommentedBlock } from '../ExportComment/ExportCommentedBlock';
Expand All @@ -28,7 +28,7 @@ export function WallpaperAppHead(props: WallpaperAppHeadProps) {

const title = wallpaper.title; /* <- TODO: !! Apply here (some) font as UTF-8 special chars */
const description =
extractDescriptionFromHtml(wallpaper.content) /* <- !! Shorten a description with GPT */ ||
extractDescriptionFromContent(wallpaper.content) /* <- !! Shorten a description with GPT */ ||
'The page was created by webgpt.cz';

const homeUrl = isExported
Expand Down

0 comments on commit ca3a84a

Please sign in to comment.