fzngagan
(Faizaan Gagan)
Março 2, 2021, 2:36pm
1
This theme component adds a post menu button for staff users to make a regular post a whisper or vice versa.
How to install
Get the code
This is useful especially for forums where a lot of conversations happen in whisper and a staff user ends up posting something and later wants to hide or show the post to non-staff users.
30 curtidas
Nice! I remember this debate a few years ago. I have been burned by this so many times. The official response is:
Er, the cat is out of the bag once you post as a not-whisper. Going back and retconning posts into whispers via editing is not something I can support as a feature.
I am often scrambling to delete whispers before they get emailed out and too many people notice my mistake!
9 curtidas
ondrej
Março 2, 2021, 2:48pm
3
Brilliant component!
is this possible to just make it so it appears on staff posts?
4 curtidas
fzngagan
(Faizaan Gagan)
Março 3, 2021, 7:04am
5
I’ll take a look at this request soon.
p.s.
This is addressed now.
2 curtidas
j.jaffeux
(Joffrey Jaffeux)
Março 3, 2021, 7:44am
6
Yes I think the same, it’s very easy to get wrong with whispers and this is one of the cases where simplicity has too be sacrified for peace of mind.
5 curtidas
fzngagan
(Faizaan Gagan)
Março 3, 2021, 7:57am
7
My question then is, does discourse behave differently in terms of email if the post is deleted vs when its post_type is changed?
1 curtida
ganncamp
(G Ann Campbell)
Maio 10, 2023, 1:09pm
8
Temos este componente instalado, mas o alternador não aparece mais.
Ele parou de funcionar, ou é possível que tenhamos feito alguma edição em outro lugar (em nossos temas?) que o bloqueou inadvertidamente?
chapoi
Maio 10, 2023, 1:12pm
9
Ainda está funcionando na meta.\n\nO que sua configuração aqui diz:\n\n
1 curtida
chapoi
Maio 10, 2023, 1:17pm
17
Ah, eu li errado o problema original, não é sobre a funcionalidade geral de sussurro, entendi! O @fzngagan já está cuidando disso, parece
1 curtida
Lhc_fl
(Linca)
Maio 10, 2023, 1:37pm
18
name: "toggle-whispers",
initialize() {
withPluginApi("0.11.0", (api) => {
api.registerValueTransformer(
"post-menu-buttons",
({ value: dag, context: { lastHiddenButtonKey } }) => {
dag.add("post-folding", WhisperToggle, {
before: lastHiddenButtonKey,
});
}
);
});
},
};
Aparentemente este código está quebrado. siteSettings.enable_whispers foi modificado para siteSettings.whisper_allowed_groups.
Você pode tentar meu fork aqui:
Allows staff to change a post to whisper and vice-versa
3 curtidas
ganncamp
(G Ann Campbell)
Maio 10, 2023, 2:20pm
19
Obrigado @Lhc_fl ! Infelizmente, acho que não posso tentar seu fork, pois estamos em uma instância hospedada. Mas aprecio sua rápida investigação! Talvez isso acelere a correção oficial.
1 curtida
Você pode ter qualquer componente de tema que desejar. São apenas os plugins que precisam ser #oficiais (ou verificados)
No entanto, acho que @fzngagan vai querer consertar este, então se você puder esperar, pode ser melhor neste caso.
2 curtidas
Na verdade, é um repositório do Pavilion
@Lhc_fl PR e eu revisarei.
2 curtidas
Você quer adicionar a tag pavilion ?
1 curtida
Sim, vamos fazer isso e discutirei se o @fzngagan quiser passar o Tópico adiante.
1 curtida
@merefield Há algum movimento nisso? Acho que ainda pode estar em limbo?
3 curtidas
Está aguardando uma decisão organizacional (presumivelmente trivial). Cobrei hoje.
2 curtidas