comparison src/server/blog.py @ 892:bf2af257e18b

blog: changed xmpp: alternate links MIME type for application/atom+xml
author Goffi <goffi@goffi.org>
date Sun, 20 Mar 2016 18:51:55 +0100
parents 14e611e38b67
children 298fbe562060
comparison
equal deleted inserted replaced
891:14e611e38b67 892:bf2af257e18b
446 446
447 # blog link XMPP uri 447 # blog link XMPP uri
448 blog_xmpp_uri = metadata['uri'] 448 blog_xmpp_uri = metadata['uri']
449 link_blog_elt = feed_elt.addElement('link') 449 link_blog_elt = feed_elt.addElement('link')
450 link_blog_elt['rel'] = u'alternate' 450 link_blog_elt['rel'] = u'alternate'
451 link_blog_elt['type'] = u'application/xmpp+xml' 451 link_blog_elt['type'] = u'application/atom+xml'
452 link_blog_elt['href'] = blog_xmpp_uri 452 link_blog_elt['href'] = blog_xmpp_uri
453 453
454 feed_elt.addElement('id', content=_quote(blog_xmpp_uri)) 454 feed_elt.addElement('id', content=_quote(blog_xmpp_uri))
455 updated_unix = max([float(item['updated']) for item in items]) 455 updated_unix = max([float(item['updated']) for item in items])
456 updated_dt = datetime.fromtimestamp(updated_unix) 456 updated_dt = datetime.fromtimestamp(updated_unix)