readme, some fixes

This commit is contained in:
2021-08-27 00:19:43 +02:00
parent 2b84e5eeb0
commit 957f0dbb3b
10 changed files with 118 additions and 59 deletions
+5 -4
View File
@@ -152,6 +152,10 @@ impl ConfigStore {
.collect()
}
pub async fn group_exists(&self, acct : &str) -> bool {
self.data.read().await.groups.contains_key(acct)
}
/*
pub(crate) async fn get_group_config(&self, group: &str) -> Option<GroupConfig> {
let c = self.data.read().await;
@@ -191,10 +195,7 @@ impl ConfigStore {
}
fn make_scopes() -> Scopes {
Scopes::read(scopes::Read::Accounts)
| Scopes::read(scopes::Read::Notifications)
| Scopes::read(scopes::Read::Statuses)
| Scopes::read(scopes::Read::Follows)
Scopes::read_all()
| Scopes::write(scopes::Write::Statuses)
| Scopes::write(scopes::Write::Media)
| Scopes::write(scopes::Write::Follows)