fix #339 for ttrss

This commit is contained in:
Martin Rotter 2022-09-02 13:19:36 +02:00
parent f39d5b5313
commit 1f725d8991
2 changed files with 4 additions and 2 deletions

View file

@ -64,7 +64,7 @@ I organized the supported web-based feed readers into an elegant table:
| Gmail | ✅ | ✅ | ❌ | ✅
| Google Reader API <sup>3</sup> | ✅ | ✅ | ✅ | ✅ (only for Inoreader)
| Nextcloud News | ✅ | ❌ | ❌ | ❌
| Tiny Tiny RSS | ✅ | | ✅ | ❌
| Tiny Tiny RSS | ✅ | | ✅ | ❌
<sup>1</sup> Some plugins support next-gen intelligent synchronization algorithm (ISA) which has some benefits, as it usually offers superior synchronization speed, and transfers much less data over your network connection. <a id="intel"></a>

View file

@ -1034,7 +1034,9 @@ QList<Message> TtRssGetHeadlinesResponse::messages(ServiceRoot* root) const {
message.m_created = TextFactory::parseDateTime(t);
message.m_createdFromFeed = true;
message.m_customId = QString::number(mapped[QSL("id")].toInt());
message.m_feedId = mapped[QSL("feed_id")].toString();
message.m_feedId = mapped[QSL("feed_id")].type() == QJsonValue::Type::Double
? QString::number(mapped[QSL("feed_id")].toInt())
: mapped[QSL("feed_id")].toString();
message.m_title = mapped[QSL("title")].toString();
message.m_url = mapped[QSL("link")].toString();