diff options
| author | ltning <ltning@noreply.codeberg.org> | 2025-02-04 18:38:41 +0000 |
|---|---|---|
| committer | ltning <ltning@noreply.codeberg.org> | 2025-02-04 18:38:41 +0000 |
| commit | 114ed37f9c3e57a840155b9b71fa9cdf0d7ec8d6 (patch) | |
| tree | 2a7747beb4d10fef57653ac1b91aed9469819dcd /main.c | |
| parent | f6044d3aa0241a832b0ad1d2c394c0a1b814dbe3 (diff) | |
| parent | a2dde5dedaddb7fe91c061997e1314ba569c2edf (diff) | |
Merge branch 'master' into master
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -49,6 +49,7 @@ int usage(void) printf("unblock {basedir} {instance_url} Unblocks a full instance\n"); printf("limit {basedir} {uid} {actor} Limits an actor (drops their announces)\n"); printf("unlimit {basedir} {uid} {actor} Unlimits an actor\n"); + printf("unmute {basedir} {uid} {actor} Unmutes a previously muted actor\n"); printf("verify_links {basedir} {uid} Verifies a user's links (in the metadata)\n"); printf("search {basedir} {uid} {regex} Searches posts by content\n"); printf("export_csv {basedir} {uid} Exports data as CSV files\n"); @@ -446,6 +447,18 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(cmd, "unmute") == 0) { /** **/ + if (is_muted(&snac, url)) { + unmute(&snac, url); + + printf("%s unmuted\n", url); + } + else + printf("%s actor is not muted\n", url); + + return 0; + } + if (strcmp(cmd, "search") == 0) { /** **/ int to; |