]> gitweb.fperrin.net Git - atom.git/commitdiff
In `atom-create', make ID default on SELF rather than on LINK.
authorFrédéric Perrin <frederic.perrin@resel.fr>
Wed, 2 Feb 2011 20:32:38 +0000 (21:32 +0100)
committerFrédéric Perrin <frederic.perrin@resel.fr>
Wed, 2 Feb 2011 21:20:16 +0000 (22:20 +0100)
atom.el

diff --git a/atom.el b/atom.el
index 7d70ac577b445e7c9a65b067a02f2e428c03a3c4..d159eed7029a85c69e9e33afe78739b0fb6fa599 100644 (file)
--- a/atom.el
+++ b/atom.el
@@ -78,7 +78,7 @@ feed.
 SELF is the canonical URL to this feed.
 
 ID is a unique identifier for this feed. If not given, it
-defaults to LINK.
+defaults to SELF.
 
 AUTHOR is the author of the feed. See `atom-massage-author' for
 the possible ways to specify it.
@@ -92,7 +92,7 @@ UPDATED is the date the feed was last updated. If not given,
                                `(((href . ,self) (rel . "self")
                                   (type . "application/atom+xml")))))
     (atom-modify-entry atom-feed 'updated (atom-format-time updated))
-    (atom-modify-entry atom-feed 'id (or id link))
+    (atom-modify-entry atom-feed 'id (or id self link))
     atom-feed))
 
 (defun atom-push-entry (atom entry)