From b8fa70cc596037a246e29a53b65a67a1b389f3ce Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 24 Apr 2017 23:10:12 +0200 Subject: [PATCH] enhance compatibility towards OStatus with acct:news@c3d2.de --- .gitignore | 1 + content/static/.well-known/host-meta | 5 ++++ .../.well-known/webfinger/acct:news@c3d2.de | 18 +++++++++++++ xsl/atom.xsl | 27 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 content/static/.well-known/host-meta create mode 100644 content/static/.well-known/webfinger/acct:news@c3d2.de diff --git a/.gitignore b/.gitignore index 590d778a4..30c3aabe6 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /content/static/datenspuren/2007/fahrplan/attachments/1280-Kamera* /content/static/datenspuren/2012/style.css.bak portal/ +!/content/static/.well-known diff --git a/content/static/.well-known/host-meta b/content/static/.well-known/host-meta new file mode 100644 index 000000000..3fd1377e0 --- /dev/null +++ b/content/static/.well-known/host-meta @@ -0,0 +1,5 @@ + + + + diff --git a/content/static/.well-known/webfinger/acct:news@c3d2.de b/content/static/.well-known/webfinger/acct:news@c3d2.de new file mode 100644 index 000000000..357358356 --- /dev/null +++ b/content/static/.well-known/webfinger/acct:news@c3d2.de @@ -0,0 +1,18 @@ +{ + "subject": "acct:news@c3d2.de", + "aliases": [ + "https://www.c3d2.de/news.html" + ], + "links": [ + { + "rel": "http://webfinger.net/rel/profile-page", + "type": "text/html", + "href": "https://www.c3d2.de/whois.html" + }, + { + "rel": "http://schemas.google.com/g/2010#updates-from", + "type": "application/atom+xml", + "href": "https://www.c3d2.de/news-atom.xml" + } + ] +} diff --git a/xsl/atom.xsl b/xsl/atom.xsl index 49d8da83c..f17542a1a 100644 --- a/xsl/atom.xsl +++ b/xsl/atom.xsl @@ -3,6 +3,11 @@ xmlns="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" + xmlns:activity="http://activitystrea.ms/spec/1.0/" + xmlns:poco="http://portablecontacts.net/spec/1.0" + xmlns:media="http://purl.org/syndication/atommedia" + xmlns:ostatus="http://ostatus.org/schema/1.0" + xmlns:mastodon="http://mastodon.social/schema/1.0" exclude-result-prefixes="xsl date"> @@ -35,6 +40,21 @@ http://www.c3d2.de/ Neues aus dem Chaos Computer Club Dresden images/ck.png + + https://www.c3d2.de/news.html + https://www.c3d2.de/news.html + C3D2 News + mail@c3d2.de + Chaos Computer Club Dresden News + + + http://activitystrea.ms/schema/1.0/team + c3d2 + C3D2 + public + @@ -66,6 +86,13 @@ <xsl:value-of select="@title"/> Z + public + http://activitystrea.ms/schema/1.0/post + + http://activitystrea.ms/schema/1.0/event + http://activitystrea.ms/schema/1.0/event + http://activitystrea.ms/schema/1.0/article +