Add scary warning for people still using API v1 (#525)

* Add scary warning for people still using API v1

* change [] brackets to headers
This commit is contained in:
triphora
2023-01-17 17:01:26 -05:00
committed by GitHub
parent 867ba7b68f
commit df3aeed291
3 changed files with 42 additions and 6 deletions

View File

@@ -36,9 +36,9 @@ fn convert_to_legacy(version: Version) -> LegacyVersion {
mod_id: version.project_id,
author_id: version.author_id,
featured: version.featured,
name: version.name,
name: format!("[STOP USING API v1] {}", version.name),
version_number: version.version_number,
changelog: version.changelog,
changelog: format!("# STOP USING API v1 - whatever application you're using right now is likely deprecated or abandoned\n{}", version.changelog),
changelog_url: None,
date_published: version.date_published,
downloads: version.downloads,