fix: Use _cached_tags for Note model compatibility in feeds
The Note model has a `tags` property that uses `_cached_tags` internally. Setting `tags` directly via object.__setattr__ conflicts with the property. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -71,7 +71,7 @@ def _get_cached_notes():
|
|||||||
|
|
||||||
# Attach tags to each note (v1.3.1)
|
# Attach tags to each note (v1.3.1)
|
||||||
tags = get_note_tags(note.id)
|
tags = get_note_tags(note.id)
|
||||||
object.__setattr__(note, 'tags', tags)
|
object.__setattr__(note, '_cached_tags', tags)
|
||||||
|
|
||||||
_feed_cache["notes"] = notes
|
_feed_cache["notes"] = notes
|
||||||
_feed_cache["timestamp"] = now
|
_feed_cache["timestamp"] = now
|
||||||
|
|||||||
Reference in New Issue
Block a user