Support filtering for posts with / without media
Reorganize the config to put the patterns into a separate section, with one object per pattern, where we can potentially configure more kinds of conditions later. In theory, each pattern could have just one keyword, but keep the keywords a list for convenience.
Tested with:
diff --git a/src/main.rs b/src/main.rs
index 49e75a0cc8..222ab18773 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -155 +155 @@ async fn main_loop(config: Config, client: Client) -> Result<()> {
- report_post(
+ /*report_post(
@@ -162 +162 @@ async fn main_loop(config: Config, client: Client) -> Result<()> {
- .await?;
+ .await?;*/