diff --git a/pkg/internal/services/posts.go b/pkg/internal/services/posts.go index d2d0090..54f0bc7 100644 --- a/pkg/internal/services/posts.go +++ b/pkg/internal/services/posts.go @@ -68,7 +68,7 @@ func FilterPostWithUserContext(c *fiber.Ctx, tx *gorm.DB, user *authm.Account) * } else { // Get itself var publisher models.Publisher - if err := database.C.Where("id = ?", user.ID).First(&publisher).Error; err != nil { + if err := database.C.Where("account_id = ?", user.ID).First(&publisher).Error; err != nil { return tx } allowlist = append(allowlist, publisher.ID)