1
0

feat: embed the vikunja logo as inline attachment

This commit is contained in:
kolaente
2022-06-19 16:21:11 +02:00
committed by Gitea
parent 30e0e98f77
commit f4f8450d16
8 changed files with 22 additions and 7 deletions

View File

@ -242,12 +242,12 @@ func convertTrelloDataToVikunja(trelloData []*trello.Board, token string) (fullV
log.Debugf("[Trello Migration] Converted label %s from card %s", label.ID, card.ID)
}
// Attachments
// Embeds
if len(card.Attachments) > 0 {
log.Debugf("[Trello Migration] Downloading %d card attachments from card %s", len(card.Attachments), card.ID)
}
for _, attachment := range card.Attachments {
if attachment.MimeType == "" { // Attachments can also be not downloadable - the mime type is empty in that case.
if attachment.MimeType == "" { // Embeds can also be not downloadable - the mime type is empty in that case.
log.Debugf("[Trello Migration] Attachment %s does not have a mime type, not downloading", attachment.ID)
continue
}

View File

@ -181,7 +181,7 @@ func convertListForFolder(listID int, list *list, content *wunderlistContents) (
}
}
// Attachments
// Embeds
for _, f := range content.files {
if f.TaskID == t.ID {
// Download the attachment and put it in the file