diff --git a/v1-com-officielle/src/data/peopleData.js b/v1-com-officielle/src/data/peopleData.js
index f88e08b..f26a0d7 100644
--- a/v1-com-officielle/src/data/peopleData.js
+++ b/v1-com-officielle/src/data/peopleData.js
@@ -9,8 +9,14 @@ function idAndDate(str){
function titleAndContent(str){
let data = str.split(" :");
- let title = data[0];
- let contentData = data[1].split("
").filter(e => e);
+ let title = "NO_TITLE";
+ if (data.length > 1){
+ title = data[0];
+ }
+ let contentData = [""];
+ if (data[1]){
+ contentData = data[1].split('
').filter(e => e);
+ }
let content = "";
let src = [];
for(let line of contentData){
@@ -120,6 +126,7 @@ export async function loadPeopleData() {
};
} else if (pouet.media_attachments?.length > 0) {
let textInfos = titleAndContent(pouet.content);
+ console.log(pouet);
entry = {
id: 'img' + username + infos.id,
date: infos.date,
@@ -128,6 +135,7 @@ export async function loadPeopleData() {
author: username,
caption: textInfos.title + '.star',
src: pouet.media_attachments[0].url,
+ alt: pouet.media_attachments[0].description,
description: textInfos.content,
like: pouet.favourites_count,
isSelected: false
diff --git a/v1-com-officielle/src/dataExchange.js b/v1-com-officielle/src/dataExchange.js
index 5cf1557..5c41a27 100644
--- a/v1-com-officielle/src/dataExchange.js
+++ b/v1-com-officielle/src/dataExchange.js
@@ -14,6 +14,7 @@ export const dataStorage = reactive({
src: "",
caption: "",
like: 0,
+ alt: "",
isLiked: false
},
selectedLink:{
diff --git a/v1-com-officielle/src/indieComponents/ArtistPannel.vue b/v1-com-officielle/src/indieComponents/ArtistPannel.vue
index db7d878..593ba1d 100644
--- a/v1-com-officielle/src/indieComponents/ArtistPannel.vue
+++ b/v1-com-officielle/src/indieComponents/ArtistPannel.vue
@@ -379,6 +379,7 @@
src: e.src,
caption: e.caption,
like: e.like,
+ alt: e.alt,
isLiked: e.isLiked
}
this.displayedDescription = e.description;
diff --git a/v1-com-officielle/src/indieComponents/VisualizerPannel.vue b/v1-com-officielle/src/indieComponents/VisualizerPannel.vue
index dd87cb0..e698d6c 100644
--- a/v1-com-officielle/src/indieComponents/VisualizerPannel.vue
+++ b/v1-com-officielle/src/indieComponents/VisualizerPannel.vue
@@ -21,7 +21,7 @@
{{selectedImg.like}}