<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US"
      xmlns="http://www.w3.org/2005/Atom"
      xmlns:activity="http://activitystrea.ms/spec/1.0/"
      xmlns:georss="http://www.georss.org/georss"
      xmlns:ostatus="http://ostatus.org/schema/1.0"
      xmlns:thr="http://purl.org/syndication/thread/1.0"
      {% if xml_base %}xml:base="{{ xml_base }}"{% endif %}>
<generator uri="https://granary.io/">granary</generator>
<id>{{ host_url }}</id>
<title>{{ title }}</title>
{% if actor.description %}
<subtitle>{{ actor.description }}</subtitle>
{% endif %}
{% if actor.image.url %}
<logo>{{ actor.image.url }}</logo>
{% endif %}
<updated>{{ updated }}</updated>
{% include "author.atom" %}

<link rel="alternate" href="{{ host_url }}" type="text/html" />
{% set actor_url = as1.get_url(actor) %}
{% if actor_url and actor_url != host_url %}
<link rel="alternate" href="{{ actor_url }}" type="text/html" />
{% endif %}
{% if actor.image.url %}
<link rel="avatar" href="{{ actor.image.url }}" />
{% endif %}
<link rel="self" href="{{ request_url }}" type="application/atom+xml" />
{% for rel, url in rels.items() %}
<link rel="{{ rel }}" href="{{ url }}" />
{% endfor %}

{% for activity in items %}
<entry>
{% include "_entry.atom" %}
</entry>
{% endfor %}
</feed>
