diff --git a/pkg/internal/http/api/posts_api.go b/pkg/internal/http/api/posts_api.go index 84c5fe7..dc64fc2 100644 --- a/pkg/internal/http/api/posts_api.go +++ b/pkg/internal/http/api/posts_api.go @@ -32,6 +32,9 @@ func universalPostFilter(c *fiber.Ctx, tx *gorm.DB) (*gorm.DB, error) { if c.QueryBool("noReply", true) { tx = services.FilterPostReply(tx) } + if c.QueryBool("noCollapse", true) { + tx = tx.Where("is_collapsed = ?", false) + } if len(c.Query("author")) > 0 { var author models.Publisher