commit 6097ba5
default
·
2025-01-26 16:55:36 +0000 UTC
parent 5d26796
New command-line option 'unmute'.
1 files changed,
+13,
-0
M
main.c
M
main.c
+13,
-0
1@@ -49,6 +49,7 @@ int usage(void)
2 printf("unblock {basedir} {instance_url} Unblocks a full instance\n");
3 printf("limit {basedir} {uid} {actor} Limits an actor (drops their announces)\n");
4 printf("unlimit {basedir} {uid} {actor} Unlimits an actor\n");
5+ printf("unmute {basedir} {uid} {actor} Unmutes a previously muted actor\n");
6 printf("verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n");
7 printf("search {basedir} {uid} {regex} Searches posts by content\n");
8 printf("export_csv {basedir} {uid} Exports data as CSV files\n");
9@@ -446,6 +447,18 @@ int main(int argc, char *argv[])
10 return 0;
11 }
12
13+ if (strcmp(cmd, "unmute") == 0) { /** **/
14+ if (is_muted(&snac, url)) {
15+ unmute(&snac, url);
16+
17+ printf("%s unmuted\n", url);
18+ }
19+ else
20+ printf("%s actor is not muted\n", url);
21+
22+ return 0;
23+ }
24+
25 if (strcmp(cmd, "search") == 0) { /** **/
26 int to;
27