forked from Furumi/furumi-web
Keep a published card's representative across restarts
The account that provides a published card stays its representative ahead of server-fetched metadata, and after a restart it is recognized by the text of the active card. Server-fetched metadata only counts as trusted when the catalog URL is the podcast's origin, since an account can point its synced catalog URL anywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
767134d1dd
commit
bbdac75967
3 files changed
+140
-26
No files matched your search
+7
-3
@@ -240,9 +240,13 @@ only while the overlay runs.
|
||||
- `aggregate_share_states` keeps the accounts for which `effective_share`
|
||||
holds and whose card has no privacy warnings or a matching confirmation,
|
||||
and builds one `PodcastShareState` per podcast with
|
||||
`privacy_confirmed = true`. Representative: no warnings, then a catalog
|
||||
from the server's own fetch (`meta_from_feed`), then the previous
|
||||
round's representative (kept in memory), then the smallest account id.
|
||||
`privacy_confirmed = true`. Representative: no warnings, then the
|
||||
incumbent (the previous round's representative, kept in memory, or after
|
||||
a restart an account whose card text equals the active card's text from
|
||||
`PodcastDht::published`), then `AccountShare::trusted_meta`
|
||||
(`meta_from_feed` and the catalog URL is the origin; an account can point
|
||||
its synced catalog URL anywhere before the server fetches it), then the
|
||||
smallest account id.
|
||||
- At most 192 podcasts (replicas keep 256 records per publisher, tombstones
|
||||
included), allocated round-robin over the sharing accounts (`allocate`):
|
||||
each account's queue holds its podcasts the node already publishes
|
||||
|
||||
Reference in new issue
Block a user