DEV: Remove legacy topic-list code (#78)

This commit is contained in:
David Taylor 2025-04-14 14:38:37 +01:00 committed by GitHub
parent 03fc59b981
commit f3a9b47f83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View File

@ -1,3 +1,4 @@
< 3.5.0.beta3-dev: 03fc59b9814897ab39aa6a6963381b6bd09bf83e
< 3.5.0.beta1-dev: 83e2797ceb40d9832a40ee8c4bc32c7127e9dcda
< 3.4.0.beta4-dev: a5ff3374335f17b46654c4ae1e5be7b539c2da1a
< 3.4.0.beta1-dev: 93551f55d6e9f8d688f1f9dc0b6a2f14eb08b603

View File

@ -1,13 +1,5 @@
import { apiInitializer } from "discourse/lib/api";
import { withSilencedDeprecations } from "discourse/lib/deprecated";
export default apiInitializer("0.8", (api) => {
api.registerValueTransformer("topic-list-item-expand-pinned", () => true);
withSilencedDeprecations("discourse.hbr-topic-list-overrides", () => {
api.modifyClass("component:topic-list-item", {
pluginId: "discourse-air",
expandPinned: true,
});
});
});