tangled
alpha
login
or
join now
bladee.bsky.social
/
darkfeed
1
fork
atom
Bluesky feed server - NSFW Likes
1
fork
atom
overview
issues
2
pulls
pipelines
fix: Use labels from moderation.bsky.app
bladee.bsky.social
6 months ago
6a0e5f6e
e79e0f2c
verified
This commit was signed with the committer's
known signature
.
bladee.bsky.social
SSH Key Fingerprint:
SHA256:+YD7E7cyoUS8DTBB7i5c8AWUOvVAmmwcErmb2UIN2cY=
+6
1 changed file
expand all
collapse all
unified
split
darkfeed
src
main
kotlin
api
BskyApi.kt
+6
darkfeed/src/main/kotlin/api/BskyApi.kt
···
22
22
import rs.averyrive.darkfeed.api.lexicon.app.bsky.feed.Generator
23
23
import rs.averyrive.darkfeed.api.lexicon.app.bsky.feed.LikeRef
24
24
import rs.averyrive.darkfeed.api.lexicon.app.bsky.feed.defs.PostView
25
25
+
import rs.averyrive.darkfeed.api.model.Did
25
26
import rs.averyrive.darkfeed.api.model.toDid
26
27
27
28
const val PUBLIC_BSKY_API_HOST: String = "public.api.bsky.app"
29
29
+
private val BSKY_MODERATION_SERVICE_DID: Did = "did:plc:ar7c4by46qjdydhdevvrndac".toDid()
28
30
29
31
class BskyApi(
30
32
private val authManager: AuthManager? = null,
···
164
166
host = PUBLIC_BSKY_API_HOST
165
167
path("/xrpc/app.bsky.feed.getPosts")
166
168
}
169
169
+
170
170
+
// Include labels from Bluesky moderation service in response.
171
171
+
header(key = "atproto-accept-labelers", value = BSKY_MODERATION_SERVICE_DID.toString())
172
172
+
167
173
posts.forEach { parameter("uris", it) }
168
174
}
169
175