disable avatar update

main
Namekuji 2023-04-28 09:31:40 -04:00
rodzic 3138e2a596
commit d52ae18c44
5 zmienionych plików z 448 dodań i 417 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ audon.localhost {
}
}
livekit.audon.localhost {
livekit.localhost {
tls /etc/caddy/certs/cert.pem /etc/caddy/certs/key.pem
encode zstd gzip
reverse_proxy livekit:7880

Plik diff jest za duży Load Diff

Wyświetl plik

@ -28,7 +28,8 @@ export default {
},
computed: {
uploadEnabled() {
return this.roomToken?.original && this.roomToken?.indicator;
// return this.roomToken?.original && this.roomToken?.indicator;
return false;
},
},
async mounted() {

Wyświetl plik

@ -47,11 +47,14 @@ export const useMastodonStore = defineStore("mastodon", {
this.authorized = true;
},
async updateAvatar(img, filename) {
return;
/*
if (this.client === null) return;
const avatarBlob = await (await fetch(img)).blob();
this.userinfo = await this.client.v1.accounts.updateCredentials({
avatar: new File([avatarBlob], `${Date.now()}_${filename}`),
});
*/
},
async revertAvatar() {
const token = await axios.get("/api/token");

Wyświetl plik

@ -236,8 +236,9 @@ func getAppConfig(server string) (*mastodon.AppConfig, error) {
redirectURI = u.String()
conf := &mastodon.AppConfig{
ClientName: "Audon",
Scopes: "read:accounts read:follows write:accounts",
ClientName: "Audon",
// Scopes: "read:accounts read:follows write:accounts",
Scopes: "read:accounts read:follows",
Website: "https://codeberg.org/nmkj/audon",
RedirectURIs: redirectURI,
}