edit: lien entre player & message + mastodon

This commit is contained in:
2026-04-01 09:42:27 +02:00
parent 54731b6721
commit eaf1e1bbcb
20 changed files with 125 additions and 95 deletions
+5 -10
View File
@@ -7,15 +7,6 @@ function idAndDate(str){
}
}
function inlineContent(str){
let data = str.split("<br>");
let content = "";
for (let line of data){
content += line + '\n';
}
return content
}
function titleAndContent(str){
let data = str.split(" :");
let title = data[0];
@@ -76,13 +67,17 @@ export async function loadPeopleData() {
const username = pouet.account.display_name;
let infos = idAndDate(pouet.created_at);
let entry;
//console.log(pouet);
//ignorer autres que images
if (pouet.media_attachments?.length > 0 &&
!pouet.media_attachments[0].type.includes('image')) {
continue;
}
if (pouet.in_reply_to_account_id) {
continue;
}
if (pouet.content.includes('http')) {
let textInfos = titleAndContent(pouet.content);
entry = {