aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorOliver <zen@noreply.codeberg.org>2025-08-19 21:38:44 +0200
committerOliver <zen@noreply.codeberg.org>2025-08-19 21:38:44 +0200
commiteecfeec3745333451de6a2b1754f43f171e23e5d (patch)
tree0521647efd7aba9cca0911acb387872f5f303f2d /main.c
parent3554a73aa50526631961efcca78c6c8eb2a16911 (diff)
parent9558136f4153f75bf5b5dfe789f841489796b9eb (diff)
Merge pull request 'updates holen' (#10) from grunfink/snac2:master into master
Reviewed-on: https://codeberg.org/zen/snac2/pulls/10
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 11 insertions, 0 deletions
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);