diff --git a/.env.example b/.env.example index 7c3277a..cde8f99 100644 --- a/.env.example +++ b/.env.example @@ -23,6 +23,7 @@ STATIC_PROXY="" GOOGLE_SEARCH_SITE="" TAGS="" COMMENTS="" +REACTIONS="" LINKS="" NAVS="" -RSS_BEAUTIFY="" \ No newline at end of file +RSS_BEAUTIFY="" diff --git a/src/components/item.astro b/src/components/item.astro index e1dcc78..42f494f 100644 --- a/src/components/item.astro +++ b/src/components/item.astro @@ -14,6 +14,7 @@ const { post, isItem } = Astro.props const channel = getEnv(import.meta.env, Astro, 'CHANNEL') const COMMENTS = getEnv(import.meta.env, Astro, 'COMMENTS') +const REACTIONS = getEnv(import.meta.env, Astro, 'REACTIONS') const datetime = dayjs(post.datetime).tz(timezone) const timeago = datetime.isBefore(dayjs().subtract(1, 'w')) ? datetime.format('HH:mm · ll · ddd') : datetime.fromNow() @@ -30,7 +31,7 @@ const timeago = datetime.isBefore(dayjs().subtract(1, 'w')) ? datetime.format('H {post.content.length > 0 &&
} { - post.reactions?.length > 0 && ( + REACTIONS && post.reactions?.length > 0 && (