diff --git a/src/stores/user.js b/src/stores/user.js
index 1b45f26..303378a 100644
--- a/src/stores/user.js
+++ b/src/stores/user.js
@@ -28,7 +28,7 @@ export const useUserStore = defineStore('user', () => {
const updateProfilePictureEndpoint = haveNewProfilePicture ? `/api/UpdateMyUser/profile-picture` : `/api/UpdateMyUser/profile-picture?url=${myUserModel.storedDataUrls.profilePictureUrl}`;
const response = await client.post(updateProfilePictureEndpoint, profilePicture, {
headers: {
- 'Content-Type': 'application/octet-stream',
+ 'Content-Type': profilePicture?.type ?? "application/octet-stream",
}
});
@@ -38,11 +38,11 @@ export const useUserStore = defineStore('user', () => {
}
if (typeof myUserModel.storedDataUrls.bannerPictureUrl !== "object") {
const haveNewBannerPicture = bannerPicture !== null && bannerPicture.size !== 0;
-
+
const updateBannerPictureEndpoint = haveNewBannerPicture ? `/api/UpdateMyUser/banner-picture` : `/api/UpdateMyUser/banner-picture?url=${myUserModel.storedDataUrls.bannerPictureUrl}`;
const response = await client.post(updateBannerPictureEndpoint, bannerPicture, {
headers: {
- 'Content-Type': 'application/octet-stream',
+ 'Content-Type': bannerPicture?.type ?? "octet-stream",
}
});
@@ -56,7 +56,7 @@ export const useUserStore = defineStore('user', () => {
const updateWebsiteIconEndpoint = haveNewWebsiteIcon ? `/api/UpdateMyUser/website-icon` : `/api/UpdateMyUser/website-icon?url=${myUserModel.storedDataUrls.websiteIconUrl}`;
const response = await client.post(updateWebsiteIconEndpoint, websiteIcon, {
headers: {
- 'Content-Type': 'application/octet-stream',
+ 'Content-Type': websiteIcon?.type ?? "application/octet-stream",
}
});
diff --git a/src/views/creators/CreatorBanner.vue b/src/views/creators/CreatorBanner.vue
index c82955e..6330906 100644
--- a/src/views/creators/CreatorBanner.vue
+++ b/src/views/creators/CreatorBanner.vue
@@ -14,7 +14,8 @@
:href="socialNetwork.url" target="_blank"
class="text-white text-2xl transform transition-transform duration-200 hover:scale-125 hover:text-blue-500">
+
+
@@ -171,7 +172,8 @@ function GetActiveSocialNetworkUrls(){
socialNetworks.push({icon: "mdi-youtube", url: props.creator.socialNetworks.youtubeUrl})
}
if (userSocialNetworks.yourWebsiteUrl !== ''){
- socialNetworks.push({icon: "mdi-web", url: props.creator.socialNetworks.yourWebsiteUrl})
+ const websiteIconWithBackup = props.creator.storedDataUrls.websiteIconUrl === '' ? "mdi-web" : props.creator.storedDataUrls.websiteIconUrl;
+ socialNetworks.push({icon: websiteIconWithBackup, url: props.creator.socialNetworks.yourWebsiteUrl})
}
return socialNetworks;
diff --git a/src/views/main/ProfileBanner.vue b/src/views/main/ProfileBanner.vue
index 7526195..535a0db 100644
--- a/src/views/main/ProfileBanner.vue
+++ b/src/views/main/ProfileBanner.vue
@@ -36,7 +36,9 @@