From 616ff6d59ed747d8ad2682613ffe7b7cb98f8cfe Mon Sep 17 00:00:00 2001 From: grunfink Date: Thu, 24 Jul 2025 21:20:48 +0200 Subject: New command-line command 'muted'. --- main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index ce4e7ce..c4c298f 100644 --- a/main.c +++ b/main.c @@ -56,6 +56,7 @@ int usage(const char *cmd) "unblock {basedir} {instance_url} Unblocks a full instance\n" "limit {basedir} {uid} {actor} Limits an actor (drops their announces)\n" "unlimit {basedir} {uid} {actor} Unlimits an actor\n" + "muted {basedir} {uid} Lists the muted actors\n" "unmute {basedir} {uid} {actor} Unmutes a previously muted actor\n" "verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n" "search {basedir} {uid} {regex} Searches posts by content\n" @@ -335,6 +336,16 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(cmd, "muted") == 0) { /** **/ + xs *l = muted_list(&snac); + const char *v; + + xs_list_foreach(l, v) + printf("%s\n", v); + + return 0; + } + if ((url = GET_ARGV()) == NULL) return usage(cmd); -- cgit v1.2.3