Universal reading feed

♻️ Refactor post listing
This commit is contained in:
2025-03-12 22:02:33 +08:00
parent 26dfd25763
commit d6fa3bb15d
8 changed files with 203 additions and 71 deletions

View File

@@ -53,7 +53,7 @@ func apUserOutbox(c *fiber.Ctx) error {
return fiber.NewError(fiber.StatusNotFound, err.Error())
}
tx, err := UniversalPostFilter(c, database.C)
tx, err := services.UniversalPostFilter(c, database.C)
tx.Where("publisher_id = ? AND reply_id IS NULL", publisher.ID)
if err != nil {
return fiber.NewError(fiber.StatusBadRequest, err.Error())