From b6e440699e9fca474869bf74ce09f2310f05c620 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 13 Jan 2026 20:06:15 +0100 Subject: Cleanup unused functionalities --- src/components/blog/webmentions/Likes.astro | 54 ----------------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/components/blog/webmentions/Likes.astro (limited to 'src/components/blog/webmentions/Likes.astro') diff --git a/src/components/blog/webmentions/Likes.astro b/src/components/blog/webmentions/Likes.astro deleted file mode 100644 index fce1a96..0000000 --- a/src/components/blog/webmentions/Likes.astro +++ /dev/null @@ -1,54 +0,0 @@ ---- -import { Image } from "astro:assets"; -import { t } from "@/i18n/translations"; -import type { WebmentionsChildren } from "@/types"; - -interface Props { - mentions: WebmentionsChildren[]; - language?: string | undefined; -} - -const { mentions, language } = Astro.props; -const MAX_LIKES = 10; - -const likes = mentions.filter((mention) => mention["wm-property"] === "like-of"); -const likesToShow = likes - .filter((like) => like.author?.photo && like.author.photo !== "") - .slice(0, MAX_LIKES); ---- - -{ - !!likes.length && ( -
-

- {likes.length}{" "} - {likes.length > 1 ? t(language, "peopleLiked") : t(language, "personLiked")} -

- {!!likesToShow.length && ( - - )} -
- ) -} -- cgit v1.2.3