feat(labrinth): shared instances moderation (#6784)

* feat(labrinth): shared instance report type

* style(labrinth): cargo fmt

* feat(labrinth): check that instance exists when reporting

* style(labrinth): cleanup unused import

* feat(labrinth): store version id for shared instance reports

* style(labrinth): satisfy clippy

* fix(labrinth): use string id instead of int
This commit is contained in:
Sychic
2026-07-23 20:20:25 +00:00
committed by GitHub
parent 054f1b42fd
commit 95f97a44ec
11 changed files with 128 additions and 13 deletions
+1
View File
@@ -31,6 +31,7 @@ impl From<ItemType> for LegacyItemType {
ItemType::Project => LegacyItemType::Project,
ItemType::Version => LegacyItemType::Version,
ItemType::User => LegacyItemType::User,
ItemType::SharedInstance => LegacyItemType::Unknown,
ItemType::Unknown => LegacyItemType::Unknown,
}
}