Non esiste una soluzione tramite impostazioni. Puoi ottenerla con un po’ di JavaScript, tuttavia:
Nel tuo tema o in un nuovo componente del tema, aggiungi quanto segue nella scheda JS:
import { apiInitializer } from "discourse/lib/api";
import { schedule } from "@ember/runloop";
export default apiInitializer((api) => {
const current = api.getCurrentUser();
if (!current || !current.staff) {
return;
}
// Rimuove tutto ciò che segue il primo paragrafo
// contenente l'avviso dello staff.
api.decorateCookedElement((element, helper) => {
const post = helper?.getModel();
if (!post || !post.notice) {
return;
}
schedule("afterRender", () => {
const postNoticeMessage = document.querySelector(
`article[data-post-id="${post.id}"] .post-notice-message`
);
if (postNoticeMessage) {
postNoticeMessage.replaceWith(postNoticeMessage.firstChild);
}
});
});
});
Dovrebbe essere abbastanza buono.
