kopia lustrzana https://codeberg.org/nmkj/audon
disable avatar update
rodzic
3138e2a596
commit
d52ae18c44
|
@ -16,7 +16,7 @@ audon.localhost {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
livekit.audon.localhost {
|
livekit.localhost {
|
||||||
tls /etc/caddy/certs/cert.pem /etc/caddy/certs/key.pem
|
tls /etc/caddy/certs/cert.pem /etc/caddy/certs/key.pem
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy livekit:7880
|
reverse_proxy livekit:7880
|
||||||
|
|
Plik diff jest za duży
Load Diff
|
@ -28,7 +28,8 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
uploadEnabled() {
|
uploadEnabled() {
|
||||||
return this.roomToken?.original && this.roomToken?.indicator;
|
// return this.roomToken?.original && this.roomToken?.indicator;
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
|
|
@ -47,11 +47,14 @@ export const useMastodonStore = defineStore("mastodon", {
|
||||||
this.authorized = true;
|
this.authorized = true;
|
||||||
},
|
},
|
||||||
async updateAvatar(img, filename) {
|
async updateAvatar(img, filename) {
|
||||||
|
return;
|
||||||
|
/*
|
||||||
if (this.client === null) return;
|
if (this.client === null) return;
|
||||||
const avatarBlob = await (await fetch(img)).blob();
|
const avatarBlob = await (await fetch(img)).blob();
|
||||||
this.userinfo = await this.client.v1.accounts.updateCredentials({
|
this.userinfo = await this.client.v1.accounts.updateCredentials({
|
||||||
avatar: new File([avatarBlob], `${Date.now()}_${filename}`),
|
avatar: new File([avatarBlob], `${Date.now()}_${filename}`),
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
async revertAvatar() {
|
async revertAvatar() {
|
||||||
const token = await axios.get("/api/token");
|
const token = await axios.get("/api/token");
|
||||||
|
|
|
@ -236,8 +236,9 @@ func getAppConfig(server string) (*mastodon.AppConfig, error) {
|
||||||
redirectURI = u.String()
|
redirectURI = u.String()
|
||||||
|
|
||||||
conf := &mastodon.AppConfig{
|
conf := &mastodon.AppConfig{
|
||||||
ClientName: "Audon",
|
ClientName: "Audon",
|
||||||
Scopes: "read:accounts read:follows write:accounts",
|
// Scopes: "read:accounts read:follows write:accounts",
|
||||||
|
Scopes: "read:accounts read:follows",
|
||||||
Website: "https://codeberg.org/nmkj/audon",
|
Website: "https://codeberg.org/nmkj/audon",
|
||||||
RedirectURIs: redirectURI,
|
RedirectURIs: redirectURI,
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue