Merge pull request #799 from DioEgizio/fix-oopsie

fix websiteurl in cf modpacks (part 2)
This commit is contained in:
flow 2022-06-15 06:28:09 -03:00 committed by GitHub
commit c527ea83fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ void Flame::loadIndexedInfo(IndexedPack& pack, QJsonObject& obj)
{ {
auto links_obj = Json::ensureObject(obj, "links"); auto links_obj = Json::ensureObject(obj, "links");
pack.extra.websiteUrl = Json::ensureString(links_obj, "issuesUrl"); pack.extra.websiteUrl = Json::ensureString(links_obj, "websiteUrl");
if(pack.extra.websiteUrl.endsWith('/')) if(pack.extra.websiteUrl.endsWith('/'))
pack.extra.websiteUrl.chop(1); pack.extra.websiteUrl.chop(1);