fix: Tags keep the order they were entered in (v2.6.4)
add_tags_to_note() rewrites note_tags in entry order on every save, so note_tags.id already records it; get_note_tags(entered_order=True) reads it back. Crossposts (Threads topic, which hashtags fit on Bluesky), the editor and Micropub q=source/update use it, so saving no longer reorders tags alphabetically. Public pages stay alphabetical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2474628646
commit
4b56f7cd4b
8 files changed
+118
-15
No files matched your search
@@ -1239,7 +1239,7 @@ def _reconcile(row, target: Target) -> tuple:
|
||||
post = Post(
|
||||
note=note,
|
||||
permalink=f"{site}/note/{note.slug}",
|
||||
tags=[t["display_name"] for t in get_note_tags(note.id)],
|
||||
tags=[t["display_name"] for t in get_note_tags(note.id, entered_order=True)],
|
||||
max_chars=target.max_chars,
|
||||
media=_media_files(note.id, target.max_media) if note.kind == "note" else [],
|
||||
kind=note.kind,
|
||||
|
||||
Reference in new issue
Block a user