user profile's backgrounds support

This commit is contained in:
Henry Jameson 2026-06-01 21:56:09 +03:00
commit 2aee91662d
7 changed files with 25 additions and 1 deletions

View file

@ -149,13 +149,16 @@ export default {
userBackground() {
return this.currentUser.background_image
},
foreignProfileBackground() {
return useMergedConfigStore().mergedConfig.allowForeignUserBackground && useInterfaceStore().foreignProfileBackground
},
instanceBackground() {
return useMergedConfigStore().mergedConfig.hideInstanceWallpaper
? null
: this.instanceBackgroundUrl
},
background() {
return this.userBackground || this.instanceBackground
return this.foreignProfileBackground || this.userBackground || this.instanceBackground
},
bgStyle() {
if (this.background) {