fix: Have the URL be the project URL itself

(I think, doesn't seem to work for the waffle though, probably because
of the staging API :/)
This commit is contained in:
flow
2022-05-14 21:47:35 -03:00
parent 5ea8cec16f
commit 9899a0e098
3 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ void loadIndexedPack(Modpack& pack, QJsonObject& obj)
void loadIndexedInfo(Modpack& pack, QJsonObject& obj)
{
pack.extra.body = Json::ensureString(obj, "body");
pack.extra.projectUrl = QString("https://modrinth.com/modpack/%1").arg(Json::ensureString(obj, "slug"));
pack.extra.sourceUrl = Json::ensureString(obj, "source_url");
pack.extra.wikiUrl = Json::ensureString(obj, "wiki_url");