From 86de22fe92560db8d0661a6f4ee9be07a84043a3 Mon Sep 17 00:00:00 2001 From: grunfink Date: Sat, 16 Aug 2025 16:42:50 +0200 Subject: New function collect_replies(). --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index c4c298f..1e27302 100644 --- a/main.c +++ b/main.c @@ -730,6 +730,12 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(cmd, "collect_replies") == 0) { /** **/ + collect_replies(&snac, url); + + return 0; + } + if (strcmp(cmd, "insert") == 0) { /** **/ int status; xs *data = NULL; -- cgit v1.2.3 From 1b8206fe25cd4737b3b497d9af7e729043a75c76 Mon Sep 17 00:00:00 2001 From: grunfink Date: Mon, 18 Aug 2025 19:29:00 +0200 Subject: Fixed typo. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 1e27302..0a78489 100644 --- a/main.c +++ b/main.c @@ -61,7 +61,7 @@ int usage(const char *cmd) "verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n" "search {basedir} {uid} {regex} Searches posts by content\n" "export_csv {basedir} {uid} Exports followers, lists, MUTEd and bookmarks to CSV\n" - "export_posts {basedir} {iod} Exports all posts to outbox.json\n" + "export_posts {basedir} {uid} Exports all posts to outbox.json\n" "alias {basedir} {uid} {account} Sets account (@user@host or actor url) as an alias\n" "migrate {basedir} {uid} Migrates to the account defined as the alias\n" "import_csv {basedir} {uid} Imports data from CSV files\n" -- cgit v1.2.3 From ff52f779b7d47da0274287c01a4cdd19e952c73e Mon Sep 17 00:00:00 2001 From: grunfink Date: Mon, 18 Aug 2025 19:54:53 +0200 Subject: New function enqueue_collect_replies(). --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 0a78489..e53bdf8 100644 --- a/main.c +++ b/main.c @@ -731,7 +731,7 @@ int main(int argc, char *argv[]) } if (strcmp(cmd, "collect_replies") == 0) { /** **/ - collect_replies(&snac, url); + enqueue_collect_replies(&snac, url); return 0; } -- cgit v1.2.3 From e963924759225b1f03f2d38e80ce6f97af03c07b Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Wed, 20 Aug 2025 23:29:38 +0200 Subject: Fix CLI boosts not showing in public timeline --- main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main.c') diff --git a/main.c b/main.c index c4c298f..cb449cb 100644 --- a/main.c +++ b/main.c @@ -494,6 +494,7 @@ int main(int argc, char *argv[]) if (msg != NULL) { enqueue_message(&snac, msg); + timeline_admire(&snac, xs_dict_get(msg, "object"), snac.actor, 0); if (dbglevel) { xs_json_dump(msg, 4, stdout); -- cgit v1.2.3 From 3611f42fe202c6ec198c34dbc0a5939b8287583e Mon Sep 17 00:00:00 2001 From: grunfink Date: Fri, 22 Aug 2025 06:48:03 +0200 Subject: Added 'collect_replies' info in the about screen. --- main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'main.c') diff --git a/main.c b/main.c index 7df4574..e01b6a2 100644 --- a/main.c +++ b/main.c @@ -39,6 +39,7 @@ int usage(const char *cmd) "unfollow {basedir} {uid} {actor} Unfollows an actor\n" "request {basedir} {uid} {url} Requests an object\n" "insert {basedir} {uid} {url} Requests an object and inserts it into the timeline\n" + "collect_replies {basedir} {uid} {url} Collects all replies from a post\n" "actor {basedir} [{uid}] {url} Requests an actor\n" "note {basedir} {uid} {text} [files...] Sends a note with optional attachments\n" "note_unlisted {basedir} {uid} {text} [files...] Sends an unlisted note with optional attachments\n" -- cgit v1.2.3