def content_xml_view(request, guid):
"""Diaspora single post view XML representation.
Fetched by remote servers in certain situations.
"""
content = get_object_or_404(Content, guid=guid, visibility=Visibility.PUBLIC, local=True)
entity = make_federable_content(content)
xml = get_full_xml_representation(entity, content.author.private_key)
return HttpResponse(xml, content_type="application/xml")
评论列表
文章目录