Commit Graph

8 Commits (765a8c6e28a0b1e2a9bfab6b88d5847d1501e321)

Author SHA1 Message Date
boojack 10a955fd62 refactor: move plugin packages under internal 2 months ago
boojack 4b4e719470
feat(attachments): add Live Photo and Motion Photo support (#5810) 2 months ago
Johnny d326c71078 refactor(db): rename tables for clarity - resource→attachment, system_setting→instance_setting 5 months ago
Johnny 78aa41336a feat: implement attachment filtering functionality 6 months ago
Steven 46ce0bc62e fix(store): correct PostgreSQL placeholder generation in IN clauses
Fixes a regression introduced in v0.25.2 where PostgreSQL IN clause
placeholders were not properly incremented, causing all parameters to
use the same placeholder index (e.g., $1, $1, $1 instead of $1, $2, $3).

This bug affected:
- ListReactions (ContentIDList) - caused "failed to list reactions" errors
- ListAttachments (MemoIDList)
- ListMemos (IDList and UIDList)

The fix combines placeholder generation and argument appending into a
single loop to ensure proper incrementing.

Fixes #5188

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
8 months ago
Copilot b685ffacdf refactor: memo filter
- Updated memo and reaction filtering logic to use a unified engine for compiling filter expressions into SQL statements.
- Removed redundant filter parsing and conversion code from ListMemoRelations, ListReactions, and ListAttachments methods.
- Introduced IDList and UIDList fields in FindMemo and FindReaction structs to support filtering by multiple IDs.
- Removed old filter test files for reactions and attachments, as the filtering logic has been centralized.
- Updated tests for memo filtering to reflect the new SQL statement compilation approach.
- Ensured that unsupported user filters return an error in ListUsers method.
8 months ago
varsnotwars 4eb5b67baf
feat: attachments by id (#5008) 10 months ago
Steven a4920d464b refactor: attachment service part2 1 year ago