Skip to content

Commit 2de0675

Browse files
authored
Merge pull request #35 from eurosky-social/eurosky/fork
news
2 parents a896f98 + 3a684f9 commit 2de0675

5 files changed

Lines changed: 2139 additions & 866 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"lexicon": 1,
3+
"id": "social.mu.newsFeedPrefs",
4+
"defs": {
5+
"main": {
6+
"type": "record",
7+
"description": "A user's News feed preferences: the topics and regions they selected and the news sources they opted out of. Stored as a singleton at rkey 'self'.",
8+
"key": "literal:self",
9+
"record": {
10+
"type": "object",
11+
"required": ["topics", "regions", "excludedDids", "createdAt"],
12+
"properties": {
13+
"topics": {
14+
"type": "array",
15+
"description": "Topic ids the user selected (e.g. 'politics', 'tech'). 'all' disables topic filtering.",
16+
"items": {"type": "string"}
17+
},
18+
"regions": {
19+
"type": "array",
20+
"description": "Region ids the user selected (e.g. 'global', 'uk'). Empty means no region filter.",
21+
"items": {"type": "string"}
22+
},
23+
"excludedDids": {
24+
"type": "array",
25+
"description": "DIDs of curated sources the user opted out of.",
26+
"items": {"type": "string", "format": "did"}
27+
},
28+
"createdAt": {
29+
"type": "string",
30+
"format": "datetime"
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}

src/features/newsFeed/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ accounts matching those facets.
99
Two datasets, deliberately stored differently:
1010

1111
- **User selections (Dataset 1)** - per-user, synced. Stored as a published
12-
atproto record in the user's PDS: collection `social.redacted.newsFeedPrefs`,
13-
rkey `self`. See `state/prefs.ts`. (`redacted` is a placeholder authority
14-
segment until the real domain is chosen.)
12+
atproto record in the user's PDS: collection `social.mu.newsFeedPrefs`,
13+
rkey `self`. See `state/prefs.ts`.
1514
- **Source registry (Dataset 2)** - shared, operator-curated config mapping
1615
accounts to topic / region / language tags. Local list in `sources.ts`. This
1716
is not a user preference, so it does not live in the PDS.
@@ -51,6 +50,4 @@ the mobile drawer.
5150

5251
## Not yet done
5352

54-
- The source registry holds curated demo accounts with placeholder tags; the
55-
`social.redacted.*` lexicon authority is a placeholder pending the real domain.
5653
- The news feed is its own screen/route, not a tab inside the home swipe-pager.

0 commit comments

Comments
 (0)