diff options
| author | default <nobody@localhost> | 2025-01-26 17:55:36 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-26 17:55:36 +0100 |
| commit | 6097ba55cf96444aac7fb9b74295722e8e5c3810 (patch) | |
| tree | 7ea9619f803827699675518bce1c801030b63014 | |
| parent | 5d267968cb0d2670f8a4bd7587e505f812dfa3bc (diff) | |
New command-line option 'unmute'.
| -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; |