···
97
+
// app.bsky.actor.getPreferences
98
+
// com.bad-example.pocket.getPreferences
/// com.bad-example.pocket.getPreferences
/// get stored bluesky prefs
103
-
path = "/com.bad-example.pocket.getPreferences",
106
+
path = "/app.bsky.actor.getPreferences",
···
#[derive(Debug, Clone, Serialize)]
159
-
service: [AppViewService; 1],
162
+
service: [AppViewService; 2],
/// Serve a did document for did:web for this to be an xrpc appview
fn get_did_doc(domain: &str) -> impl Endpoint + use<> {
let doc = poem::web::Json(AppViewDoc {
id: format!("did:web:{domain}"),
165
-
service: [AppViewService {
166
-
id: "#pocket_prefs".to_string(),
167
-
r#type: "PocketPreferences".to_string(),
168
-
service_endpoint: format!("https://{domain}"),
170
+
id: "#pocket_prefs".to_string(),
171
+
// id: "#bsky_appview".to_string(),
172
+
r#type: "PocketPreferences".to_string(),
173
+
service_endpoint: format!("https://{domain}"),
176
+
id: "#bsky_appview".to_string(),
177
+
// id: "#bsky_appview".to_string(),
178
+
r#type: "BlueskyAppview".to_string(),
179
+
service_endpoint: format!("https://{domain}"),
make_sync(move |_| doc.clone())