diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-04-10 16:44:13 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-04-10 16:44:13 +0200 |
commit | bf378f4350b0e92efcefd9c0c34f7b5c57c098f4 (patch) | |
tree | e00b7c41349830473d60c13bdcc01b1b055b55c8 /sfeed_atom.c | |
parent | 14cce37fa54608362dc2d19ff66d10b64e5777b1 (diff) |
remove sfeed "branding" in outputs
Technically for sfeed_atom this violates the RFC standard. There must be an
author in the feed or for an item. However sfeed is not the author, it is a
generator. All readers will read these feeds anyway.
https://www.rfc-editor.org/rfc/rfc4287#section-4.1.1
"atom:feed elements MUST contain one or more atom:author elements, unless all of
the atom:feed element's child atom:entry elements contain at least one
atom:author element." *shrug*
Diffstat (limited to 'sfeed_atom.c')
-rw-r--r-- | sfeed_atom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfeed_atom.c b/sfeed_atom.c index cfaeb5b..aeea2de 100644 --- a/sfeed_atom.c +++ b/sfeed_atom.c @@ -132,8 +132,7 @@ main(int argc, char *argv[]) fputs("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" "<feed xmlns=\"http://www.w3.org/2005/Atom\">\n" - "\t<title>Newsfeed</title>\n" - "\t<author><name>sfeed</name></author>\n", stdout); + "\t<title>Newsfeed</title>\n", stdout); printf("\t<id>urn:newsfeed:%lld</id>\n" "\t<updated>%04d-%02d-%02dT%02d:%02d:%02dZ</updated>\n", (long long)now, |