Deprecate movies system

This commit is contained in:
2021-02-13 11:20:54 +01:00
parent 37e90f1c18
commit f45666c72d
16 changed files with 1 additions and 512 deletions

View File

@ -200,21 +200,10 @@ ComunicWeb.components.account.export.worker = {
post.comments.forEach(parseComment);
}
/**
* Parse a movie to find potential files to download
*
* @param {Object} info Information about the movie to parse
*/
var parseMovie = function(info){
if(info.url != null)
if(!files.includes(info.url))
files.push(info.url);
}
/**
* Parse a conversation message to find potential files to download
*
* @param {Object} info Information about the movie to parse
* @param {Object} info Information about the conversation to parse
*/
var parseConversationMessage = function(info){
if(info.image_path != null)
@ -233,9 +222,6 @@ ComunicWeb.components.account.export.worker = {
//Comments
data.comments.forEach(parseComment);
//Movie
data.movies.forEach(parseMovie);
//Conversation message
//* All from users
data.all_conversation_messages.forEach(parseConversationMessage);