]> Untitled Git - lemmy.git/blobdiff - crates/db_views/src/comment_view.rs
Some formatting
[lemmy.git] / crates / db_views / src / comment_view.rs
index 8c6d44afdbefbfeaf73a82df007df8ccf4a17460..7424d9d6297fec324284f9ef452df7aa45a1be05 100644 (file)
@@ -264,8 +264,8 @@ impl<'a> CommentQueryBuilder<'a> {
     self
   }
 
-  pub fn show_bot_accounts(mut self, show_bot_accounts: bool) -> Self {
-    self.show_bot_accounts = show_bot_accounts;
+  pub fn show_bot_accounts<T: MaybeOptional<bool>>(mut self, show_bot_accounts: T) -> Self {
+    self.show_bot_accounts = show_bot_accounts.get_optional();
     self
   }