Content browser: Fix broken forum URLs

Repeated prepending would break these URLs.
This fix uses the freshly added `forum_url` field directly.
This commit is contained in:
veprogames 2024-11-03 11:01:46 +01:00 committed by sfan5
parent 294a30e445
commit db04964697

@ -51,10 +51,6 @@ local function get_formspec(data)
return
end
if info.forums then
info.forums = "https://forum.luanti.org/viewtopic.php?t=" .. info.forums
end
assert(data.package.name == info.name)
data.info = info
ui.update()
@ -194,7 +190,7 @@ local function get_formspec(data)
add_link_button(fgettext("Source"), "repo")
add_link_button(fgettext("Issue Tracker"), "issue_tracker")
add_link_button(fgettext("Translate"), "translation_url")
add_link_button(fgettext("Forum Topic"), "forums")
add_link_button(fgettext("Forum Topic"), "forum_url")
hypertext = hypertext .. "\n\n" .. info.long_description.body