enhance compatibility towards OStatus with acct:news@c3d2.de
This commit is contained in:
parent
bce197bece
commit
b8fa70cc59
|
@ -15,3 +15,4 @@
|
|||
/content/static/datenspuren/2007/fahrplan/attachments/1280-Kamera*
|
||||
/content/static/datenspuren/2012/style.css.bak
|
||||
portal/
|
||||
!/content/static/.well-known
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
|
||||
<Link rel="lrdd" type="application/xrd+xml"
|
||||
template="https://c3d2.de/.well-known/webfinger/{uri}"/>
|
||||
</XRD>
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
27
xsl/atom.xsl
27
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">
|
||||
|
||||
<xsl:include href="common.xsl" />
|
||||
|
@ -35,6 +40,21 @@
|
|||
<id>http://www.c3d2.de/</id>
|
||||
<subtitle>Neues aus dem Chaos Computer Club Dresden</subtitle>
|
||||
<logo><xsl:value-of select="$baseurl"/>images/ck.png</logo>
|
||||
<author>
|
||||
<id>https://www.c3d2.de/news.html</id>
|
||||
<uri>https://www.c3d2.de/news.html</uri>
|
||||
<name>C3D2 News</name>
|
||||
<email>mail@c3d2.de</email>
|
||||
<summary>Chaos Computer Club Dresden News</summary>
|
||||
<link rel="alternate" type="text/html"
|
||||
href="https://www.c3d2.de/news.html"/>
|
||||
<link rel="avatar" type="image/png"
|
||||
href="{$baseurl}images/ck.png"/>
|
||||
<activity:object-type>http://activitystrea.ms/schema/1.0/team</activity:object-type>
|
||||
<poco:preferredUsername>c3d2</poco:preferredUsername>
|
||||
<poco:displayName>C3D2</poco:displayName>
|
||||
<mastodon:scope>public</mastodon:scope>
|
||||
</author>
|
||||
|
||||
<!-- Alle item zu atom-entry umformen -->
|
||||
<xsl:for-each select="newsfile">
|
||||
|
@ -66,6 +86,13 @@
|
|||
<title><xsl:value-of select="@title"/></title>
|
||||
<link rel="alternate" type="application/xhtml+xml" href="{$href}"/>
|
||||
<updated><xsl:value-of select="@date"/>Z</updated>
|
||||
<mastodon:scope>public</mastodon:scope>
|
||||
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
||||
<activity:object-type><xsl:choose>
|
||||
<xsl:when test="starts-with($newsfile, 'content/news/ta-')">http://activitystrea.ms/schema/1.0/event</xsl:when>
|
||||
<xsl:when test="starts-with($newsfile, 'content/news/event-')">http://activitystrea.ms/schema/1.0/event</xsl:when>
|
||||
<xsl:otherwise>http://activitystrea.ms/schema/1.0/article</xsl:otherwise>
|
||||
</xsl:choose></activity:object-type>
|
||||
<author>
|
||||
<name><xsl:value-of select="@author"/></name>
|
||||
</author>
|
||||
|
|
Loading…
Reference in New Issue