From 03ace58be51e5c01d81b0c8fe20de5c374dc2b60 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Thu, 19 Feb 2026 16:52:44 +0100 Subject: [PATCH] feat: add ActivityPub badge and platform detection for interactions - Add ActivityPub/Fediverse platform badge (purple, network icon) to interactions page alongside existing Mastodon and Bluesky badges - Detect platform from Bridgy source URLs and author URLs for webmention.io items that lack a platform field - Filter self-referencing syndication URLs from "Also on" footer so self-hosted AP posts don't show a redundant link back to the site --- _includes/layouts/post.njk | 11 ++++++++++- interactions.njk | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 9271507..318e2b8 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -72,12 +72,21 @@ withBlogSidebar: true {% endif %} {# Syndication Footer - shows where this post was also published #} + {# Skip syndication URLs that point back to our own site (self-hosted AP) #} + {% set externalSyndication = [] %} {% if syndication %} + {% for url in syndication %} + {% if url.indexOf(site.url) != 0 %} + {% set externalSyndication = (externalSyndication.push(url), externalSyndication) %} + {% endif %} + {% endfor %} + {% endif %} + {% if externalSyndication.length %}