Skip to content

Fold the copies of one foreign post into a single card - #2197

Merged
wintermeyer merged 1 commit into
mainfrom
claude/fold-external-copies-2163
Sep 11, 2026
Merged

Fold the copies of one foreign post into a single card#2197
wintermeyer merged 1 commit into
mainfrom
claude/fold-external-copies-2163

Conversation

@wintermeyer

Copy link
Copy Markdown
Owner

The same post read off three servers was three cards in the feed and on the tag page, each identical to the one above it but for its "found through" line, and the figure over the list counted rows: on a production copy 78 stored rows for 50 originals, and /tags/internationalsandwichasong?source=fediverse drawing 20 cards for 9 posts.

One card now stands for the original. It is drawn from the copy the author's own server served where we hold one (6 of the 50) and otherwise from the copy stored first; the other servers become a disclosure — "Found through these servers" with the count, opening to the list — in the geometry a post's fediverse reactions already fold into, which both now share. The fold runs over the whole scope a surface may show before it pages it, so the count is right and a group split by a page's LIMIT cannot come back on the next page.

Reporting is unchanged and the surfaces now hold its promise: a relayed card loses one server and stays, the author's own card takes every copy and goes.

Where: Vutuv.Tags.ExternalPosts.fold_copies/1, <.external_post_card>.

Closes #2163

https://claude.ai/code/session_01AW11tx7rYiSEaRDjPFNghY

Ein Beitrag wird pro Server einmal gespeichert, also stand derselbe Text
zwei- oder dreimal im Feed und auf der Tagseite, jedes Mal identisch bis
auf die "Gefunden über"-Zeile, und die Zahl darüber zählte Zeilen statt
Beiträge: auf einer Produktionskopie 78 Zeilen für 50 Originale und eine
Tagseite mit 20 Karten für 9 Beiträge. Die Karte kommt jetzt aus der
Kopie vom Heimatserver des Autors, wenn wir eine halten, sonst aus der
zuerst gespeicherten; die übrigen Server werden zu einer aufklappbaren
Zeile in der Geometrie, in der sich die Fediverse-Reaktionen schon
falten. Gefaltet wird vor dem Blättern, über den ganzen Bestand, den eine
Oberfläche zeigen darf, damit die Zahl stimmt und eine vom LIMIT geteilte
Gruppe nicht auf der nächsten Seite ein zweites Mal auftaucht.

Diesen Text hat ein KI-Agent in meinem Namen geschrieben. Ich weiß, dass
das problematisch ist.

Claude-Session: https://claude.ai/code/session_01AW11tx7rYiSEaRDjPFNghY
@wintermeyer
wintermeyer merged commit 5affd76 into main Sep 11, 2026
1 check passed
@wintermeyer
wintermeyer deleted the claude/fold-external-copies-2163 branch September 11, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The same foreign post stands in the feed several times, and the count is wrong

1 participant