mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
Fill out headline URLs when they are mysteriously missing
This commit is contained in:
parent
48b7e8a5a8
commit
01214464cb
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,12 @@ void getHeadline(LauncherCore& core, std::function<void(Headline)> return_func)
|
|||
news.id = object["id"].toString();
|
||||
news.tag = object["tag"].toString();
|
||||
news.title = object["title"].toString();
|
||||
|
||||
if(object["url"].toString().isEmpty()) {
|
||||
news.url = QUrl(QString("https://na.finalfantasyxiv.com/lodestone/news/detail/%1").arg(news.id));
|
||||
} else {
|
||||
news.url = QUrl(object["url"].toString());
|
||||
}
|
||||
|
||||
return news;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue