Check if enclosureLink starts with https://www.youtube.com/v/ if enclosureMime is empty. Avoid appending an empty png enclosure. (#832)
This commit is contained in:
parent
46ce39266f
commit
b4c33839d8
1 changed files with 3 additions and 1 deletions
|
@ -614,7 +614,9 @@ QList<Message> OwnCloudGetMessagesResponse::messages() const {
|
||||||
enclosure.m_mimeType = QSL("image/png");
|
enclosure.m_mimeType = QSL("image/png");
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.m_enclosures.append(enclosure);
|
if (!message_map[QSL("enclosureMime")].toString().isEmpty() || !enclosure_link.startsWith(QSL("https://www.youtube.com/v/"))) {
|
||||||
|
msg.m_enclosures.append(enclosure);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.m_feedId = message_map[QSL("feedId")].toVariant().toString();
|
msg.m_feedId = message_map[QSL("feedId")].toVariant().toString();
|
||||||
|
|
Loading…
Add table
Reference in a new issue