summaryrefslogtreecommitdiff
path: root/src/mimehooks.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 11:50:09 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 11:50:09 +0200
commita61806405ab7a4d81fe55efead0d95eaa749aae9 (patch)
tree5da8e080d27a17a86bca1ce64604528db5d40a2a /src/mimehooks.c
parent484d466a6cb70474709f8f8d3ad95e17ff1be70b (diff)
MimeHooks: Atom conversion message
Diffstat (limited to 'src/mimehooks.c')
-rw-r--r--src/mimehooks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mimehooks.c b/src/mimehooks.c
index c9aed9bb..3b3c0d1a 100644
--- a/src/mimehooks.c
+++ b/src/mimehooks.c
@@ -113,6 +113,9 @@ static iBlock *translateAtomXmlToGeminiFeed_(const iString *mime, const iBlock *
113 if (!isEmpty_String(subtitle)) { 113 if (!isEmpty_String(subtitle)) {
114 appendFormat_String(&out, "## %s\n\n", cstr_String(subtitle)); 114 appendFormat_String(&out, "## %s\n\n", cstr_String(subtitle));
115 } 115 }
116 appendCStr_String(&out,
117 "This Atom XML document has been automatically translated to a Gemini feed "
118 "to allow subscribing to it.\n\n");
116 iRegExp *datePattern = 119 iRegExp *datePattern =
117 iClob(new_RegExp("^([0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9])T.*", caseSensitive_RegExpOption)); 120 iClob(new_RegExp("^([0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9])T.*", caseSensitive_RegExpOption));
118 iBeginCollect(); 121 iBeginCollect();
@@ -166,9 +169,6 @@ static iBlock *translateAtomXmlToGeminiFeed_(const iString *mime, const iBlock *
166 cstr_String(title)); 169 cstr_String(title));
167 } 170 }
168 iEndCollect(); 171 iEndCollect();
169 appendCStr_String(&out,
170 "This Atom XML document has been automatically translated to a Gemini feed "
171 "to allow subscribing to it.\n");
172 output = copy_Block(utf8_String(&out)); 172 output = copy_Block(utf8_String(&out));
173 deinit_String(&out); 173 deinit_String(&out);
174finished: 174finished: