From 94d72c2846ea3916534d11ebc1ca2343a740ccef Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 10 Aug 2022 17:34:28 +0200 Subject: [PATCH] Wired up publication name attribute fixes https://github.com/TryGhost/Team/issues/1776 --- apps/comments-ui/src/components/Replies.js | 2 +- apps/comments-ui/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/comments-ui/src/components/Replies.js b/apps/comments-ui/src/components/Replies.js index 19a3ae94e5..331779575e 100644 --- a/apps/comments-ui/src/components/Replies.js +++ b/apps/comments-ui/src/components/Replies.js @@ -1,4 +1,4 @@ -import { useContext } from 'react'; +import {useContext} from 'react'; import AppContext from '../AppContext'; import Comment from './Comment'; import RepliesPagination from './RepliesPagination'; diff --git a/apps/comments-ui/src/index.js b/apps/comments-ui/src/index.js index 0e3d6c9c79..469796cbe0 100644 --- a/apps/comments-ui/src/index.js +++ b/apps/comments-ui/src/index.js @@ -41,7 +41,7 @@ function getSiteData() { const stylesUrl = scriptTag.dataset.styles; const title = scriptTag.dataset.title === 'null' ? null : scriptTag.dataset.title; const showCount = scriptTag.dataset.count === 'true'; - const publication = 'The Off-Season'; // TODO: replace with dynamic data from script + const publication = scriptTag.dataset.publication ?? ''; // TODO: replace with dynamic data from script return {siteUrl, stylesUrl, apiKey, apiUrl, sentryDsn, postId, adminUrl, colorScheme, avatarSaturation, accentColor, appVersion, commentsEnabled, title, showCount, publication}; }