Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction Gating #1561

Merged
merged 79 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
d7ee9f3
lexicons for block lists
devinivy Aug 28, 2023
a21aa90
reorg blockset functionality into graph service, impl block/mute filt…
devinivy Aug 29, 2023
1a5eae2
apply filterBlocksAndMutes() throughout appview except feeds
devinivy Aug 29, 2023
15d1220
update local feeds to pass through cleanFeedSkeleton(), offload block…
devinivy Aug 29, 2023
b194a58
impl for grabbing block/mute details by did pair
devinivy Aug 30, 2023
0dc8413
refactor getActorInfos away, use actor service
devinivy Aug 30, 2023
c6385f1
Merge remote-tracking branch 'origin/main' into block-lists-redux-redux
devinivy Aug 30, 2023
d571bfe
experiment with moving getFeedGenerators over to a pipeline
devinivy Aug 30, 2023
890c9fc
move getPostThread over to a pipeline
devinivy Aug 30, 2023
57fbaa2
move feeds over to pipelines
devinivy Aug 31, 2023
6712b2e
move suggestions and likes over to pipelines
devinivy Aug 31, 2023
b550d1d
move reposted-by, follows, followers over to pipelines, tidy author f…
devinivy Aug 31, 2023
4f4580c
remove old block/mute checks
devinivy Aug 31, 2023
9801663
unify post presentation logic
devinivy Aug 31, 2023
2a1eced
move profiles endpoints over to pipelines
devinivy Aug 31, 2023
8a72f5a
tidy
devinivy Aug 31, 2023
e5b51c2
tidy
devinivy Sep 1, 2023
541c6c0
Merge remote-tracking branch 'origin/main' into block-lists-redux-redux
devinivy Sep 1, 2023
7ab70f9
Merge remote-tracking branch 'origin/block-lists-redux-redux' into bl…
devinivy Sep 1, 2023
cdcc26b
misc fixes
devinivy Sep 1, 2023
992c25f
unify some profile hydration/presentation in appview
devinivy Sep 1, 2023
da221b0
profile detail, split hydration and presentation, misc fixes
devinivy Sep 2, 2023
a353624
unify feed hydration w/ profile hydration
devinivy Sep 4, 2023
0015729
unify hydration step for embeds, tidy application of labels
devinivy Sep 4, 2023
32f826e
setup indexing of list-blocks in bsky appview
devinivy Sep 4, 2023
ec21246
apply list-blocks, impl getListBlocks, tidy getList, tests
devinivy Sep 5, 2023
eb30fd1
tidy
devinivy Sep 5, 2023
8711f6c
update pds proxy snaps
devinivy Sep 5, 2023
a27b532
Merge remote-tracking branch 'origin/block-lists-redux-redux-pipeline…
devinivy Sep 5, 2023
0265e49
update pds proxy snaps
devinivy Sep 5, 2023
280eb5a
fix snap
devinivy Sep 5, 2023
0dfa73b
make algos return feed items, save work in getFeed
devinivy Sep 6, 2023
0259785
misc changes, tidy
devinivy Sep 6, 2023
c84bc28
tidy
devinivy Sep 6, 2023
c645ed7
Merge pull request #1547 from bluesky-social/block-lists-redux-redux-…
devinivy Sep 6, 2023
d01ae4a
Merge remote-tracking branch 'origin/block-lists-redux-redux' into bl…
devinivy Sep 6, 2023
d704510
Merge branch 'main' into block-lists-redux-redux
dholms Sep 6, 2023
f4918c8
Merge pull request #1549 from bluesky-social/block-lists-redux-redux-…
devinivy Sep 6, 2023
447d7a5
fix aturi import
devinivy Sep 6, 2023
2a8e48b
initial lexicons for interaction-gating
devinivy Sep 5, 2023
9b7743c
add interactions view to post views
devinivy Sep 6, 2023
a910034
codegen
devinivy Sep 6, 2023
1656335
model bad reply/interaction check state on posts
devinivy Sep 6, 2023
e916b5c
initial impl for checking bad reply or interaction on write
devinivy Sep 6, 2023
3eb6e63
omit invalid interactions from post thread
devinivy Sep 6, 2023
0e560ea
support not-found list in interaction view
devinivy Sep 7, 2023
aec42a2
hydrate can-reply state on threads
devinivy Sep 7, 2023
e3cf14d
present interaction views on posts
devinivy Sep 7, 2023
cea6ff0
misc fixes, update snaps
devinivy Sep 7, 2023
aa49fbb
tidy/reorg
devinivy Sep 7, 2023
04c738f
tidy
devinivy Sep 7, 2023
d7c6dce
split interaction gating into separate record in lexicon
devinivy Sep 8, 2023
9e74667
switch interaction-gating impl to use separate record type
devinivy Sep 8, 2023
76cc20d
allow checking reply gate w/ root post deletion
devinivy Sep 8, 2023
8d6e0b4
fix
devinivy Sep 8, 2023
29b5ebb
initial gating tests
devinivy Sep 8, 2023
0ab206e
tighten gated reply views, tests
devinivy Sep 8, 2023
50b1875
reply-gating list rule tests
devinivy Sep 8, 2023
f0133f2
allow custom post rkeys within window
devinivy Sep 8, 2023
642f975
Merge remote-tracking branch 'origin/main' into block-lists-redux-redux
devinivy Sep 8, 2023
0535368
hoist actors out of composeThread()
devinivy Sep 8, 2023
cb30cff
tidy
devinivy Sep 8, 2023
31a7306
Merge remote-tracking branch 'origin/block-lists-redux-redux' into in…
devinivy Sep 11, 2023
c2740a3
update thread gate lexicons, codegen
devinivy Sep 11, 2023
25fc209
lex fix
devinivy Sep 11, 2023
b94477c
rename gate to threadgate in bsky, update views
devinivy Sep 11, 2023
52b5972
lex fix
devinivy Sep 11, 2023
60bbeb6
improve terminology around reply validation
devinivy Sep 11, 2023
6a8eaba
fix down migration
devinivy Sep 11, 2023
30ca7f0
remove thread gates on actor unindexing
devinivy Sep 11, 2023
cd54186
add back .prettierignore
devinivy Sep 11, 2023
edee5a6
tidy
devinivy Sep 11, 2023
d11ecd8
run ci on all prs
dholms Sep 12, 2023
5218ab9
syntax
dholms Sep 12, 2023
51cd347
run ci on all prs
dholms Sep 12, 2023
bd6a7a6
Merge branch 'block-lists-redux-redux' into interaction-gating-init
dholms Sep 12, 2023
79cb410
format
dholms Sep 12, 2023
1f852b2
merge main
dholms Sep 14, 2023
d6bdcab
fix snap
dholms Sep 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 56 additions & 2 deletions lexicons/app/bsky/feed/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"labels": {
"type": "array",
"items": {"type": "ref", "ref": "com.atproto.label.defs#label"}
}
},
"gate": {"type": "ref", "ref": "#gateView"}
}
},
"viewerState": {
Expand Down Expand Up @@ -71,7 +72,8 @@
"replies": {
"type": "array",
"items": {"type": "union", "refs": ["#threadViewPost", "#notFoundPost", "#blockedPost"]}
}
},
"viewer": {"type": "ref", "ref": "#viewerThreadState"}
}
},
"notFoundPost": {
Expand Down Expand Up @@ -99,6 +101,12 @@
"viewer": { "type": "ref", "ref": "app.bsky.actor.defs#viewerState" }
}
},
"viewerThreadState": {
"type": "object",
"properties": {
"canReply": {"type": "boolean"}
}
},
"generatorView": {
"type": "object",
"required": ["uri", "cid", "did", "creator", "displayName", "indexedAt"],
Expand Down Expand Up @@ -139,6 +147,52 @@
"properties": {
"repost": {"type": "string", "format": "at-uri"}
}
},
"gateView": {
"type": "object",
"properties": {
"allow": {
"type": "array",
"items": {
"type": "union",
"refs": [
"#mentionRuleView",
"#followingRuleView",
"#listRuleView"
]
}
}
}
},
"mentionRuleView": {
"type": "object",
"description": "The view counterpart to app.bsky.feed.gate#mentionRule"
},
"followingRuleView": {
"type": "object",
"description": "The view counterpart to app.bsky.feed.gate#followingRule"
},
"listRuleView": {
"type": "object",
"description": "The view counterpart to app.bsky.feed.gate#listRule",
"required": ["list"],
"properties": {
"list": {
"type": "union",
"refs": [
"app.bsky.graph.defs#listViewBasic",
"#viewNotFound"
]
}
}
},
"viewNotFound": {
"type": "object",
"required": ["uri", "notFound"],
"properties": {
"uri": {"type": "string", "format": "at-uri"},
"notFound": {"type": "boolean", "const": true}
}
}
}
}
46 changes: 46 additions & 0 deletions lexicons/app/bsky/feed/gate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"lexicon": 1,
"id": "app.bsky.feed.gate",
devinivy marked this conversation as resolved.
Show resolved Hide resolved
"defs": {
"main": {
"type": "record",
"key": "tid",
devinivy marked this conversation as resolved.
Show resolved Hide resolved
"record": {
"type": "object",
"required": ["post", "createdAt"],
"properties": {
"post": {"type": "string", "format": "at-uri"},
"allow": {
"type": "array",
"maxLength": 5,
"items": {
"type": "union",
"refs": [
"#mentionRule",
"#followingRule",
"#listRule"
]
}
},
"createdAt": {"type": "string", "format": "datetime"}
}
}
},
"mentionRule": {
"type": "object",
"description": "Allow replies from actors mentioned in your post."
},
"followingRule": {
"type": "object",
"description": "Allow replies from actors you follow."
},
"listRule": {
"type": "object",
"description": "Allow replies from actors on a list.",
"required": ["list"],
"properties": {
"list": {"type": "ref", "ref": "com.atproto.repo.strongRef"}
devinivy marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
}
3 changes: 2 additions & 1 deletion lexicons/app/bsky/graph/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"listViewerState": {
"type": "object",
"properties": {
"muted": {"type": "boolean"}
"muted": {"type": "boolean"},
"blocked": {"type": "string", "format": "at-uri"}
}
}
}
Expand Down
31 changes: 31 additions & 0 deletions lexicons/app/bsky/graph/getListBlocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"lexicon": 1,
"id": "app.bsky.graph.getListBlocks",
"defs": {
"main": {
"type": "query",
"description": "Which lists is the requester's account blocking?",
"parameters": {
"type": "params",
"properties": {
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["lists"],
"properties": {
"cursor": {"type": "string"},
"lists": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.graph.defs#listView"}
}
}
}
}
}
}
}
19 changes: 19 additions & 0 deletions lexicons/app/bsky/graph/listblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"lexicon": 1,
"id": "app.bsky.graph.listblock",
"defs": {
"main": {
"type": "record",
"description": "A block of an entire list of actors.",
"key": "tid",
"record": {
"type": "object",
"required": ["subject", "createdAt"],
"properties": {
"subject": {"type": "string", "format": "at-uri"},
"createdAt": {"type": "string", "format": "datetime"}
}
}
}
}
}
Loading