aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2025-03-08 22:29:50 +0100
committershtrophic <christoph@liebender.dev>2025-03-08 22:29:50 +0100
commit398b733b2c0ff4c96f4de9731a864373842e86d6 (patch)
treee2a381ee39d7139cf13c953c5ddad8e59bf8163f /main.c
parentbeb500360c32ee459201a087dbed57a447b1f0db (diff)
parentecf006811de59b58b3da39f68d8ed4efa7712914 (diff)
Merge remote-tracking branch 'upstream/master' into curl-smtp
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/main.c b/main.c
index 1cd6580..3cd4524 100644
--- a/main.c
+++ b/main.c
@@ -98,15 +98,6 @@ int main(int argc, char *argv[])
return snac_init(basedir);
}
- if (strcmp(cmd, "markdown") == 0) { /** **/
- /* undocumented, for testing only */
- xs *c = xs_readall(stdin);
- xs *fc = not_really_markdown(c, NULL, NULL);
-
- printf("<html>\n%s\n</html>\n", fc);
- return 0;
- }
-
if ((basedir = getenv("SNAC_BASEDIR")) == NULL) {
if ((basedir = GET_ARGV()) == NULL)
return usage();
@@ -719,7 +710,7 @@ int main(int argc, char *argv[])
if (strcmp(cmd, "note_unlisted") == 0)
scope = 2;
- msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"));
+ msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), NULL);
c_msg = msg_create(&snac, msg);