AGPL-3.0-only, a source link in the app, and everything on dev since #5 #6

Merged
bvandeusen merged 214 commits from dev into main 2026-10-21 21:40:00 -04:00
2 changed files with 9 additions and 3 deletions
Showing only changes of commit c35e7fd589 - Show all commits
+6 -2
View File
@@ -533,7 +533,9 @@ impl Inkwell {
Err(CoreError::NotLinked) => None,
Err(e) => return Err(e),
};
let revoked = link::unlink(&self.db, held).await.map_err(CoreError::store)?;
let revoked = link::unlink(&self.db, held)
.await
.map_err(CoreError::store)?;
Ok(revoked.into())
}
@@ -739,7 +741,9 @@ impl Inkwell {
url: &str,
credential: link::Credential<'_>,
) -> Result<Identity, CoreError> {
let granted = link::authenticate(url, credential).await.map_err(CoreError::network)?;
let granted = link::authenticate(url, credential)
.await
.map_err(CoreError::network)?;
self.store_link(&granted.base_url, &granted.token, granted.retention_days)?;
Ok(granted.identity.into())
}
+3 -1
View File
@@ -559,7 +559,9 @@ fn strings(v: Option<&Value>) -> Vec<String> {
/// Any RFC 3339 instant, in the store's own form (UTC, milliseconds, `Z`). Anything
/// else is treated as absent, as the server's `parse_dt` does.
fn instant(raw: &str) -> Option<String> {
DateTime::parse_from_rfc3339(raw).ok().map(|t| iso(t.with_timezone(&Utc)))
DateTime::parse_from_rfc3339(raw)
.ok()
.map(|t| iso(t.with_timezone(&Utc)))
}
/// Keep's timestamps: integer microseconds since the epoch.