fzngagan
(Faizaan Gagan)
3μ 2, 2021, 2:36μ€ν
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κ°μ μ’μμ
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!
10κ°μ μ’μμ
ondrej
3μ 2, 2021, 2:48μ€ν
3
Brilliant component!
is this possible to just make it so it appears on staff posts?
4κ°μ μ’μμ
fzngagan
(Faizaan Gagan)
3μ 3, 2021, 7:04μ€μ
5
Iβll take a look at this request soon.
p.s.
This is addressed now.
2κ°μ μ’μμ
j.jaffeux
(Joffrey Jaffeux)
3μ 3, 2021, 7:44μ€μ
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κ°μ μ’μμ
fzngagan
(Faizaan Gagan)
3μ 3, 2021, 7:57μ€μ
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κ°μ μ’μμ
ganncamp
(G Ann Campbell)
5μ 10, 2023, 1:09μ€ν
8
We have this component installed, but the toggle no longer shows up.
Has it stopped working, or is it possible that we made some edit elsewhere (to our themes?) that inadvertently blocked it?
chapoi
5μ 10, 2023, 1:12μ€ν
9
Itβs definitely still working on meta.
What does your setting here say:
1κ°μ μ’μμ
chapoi
5μ 10, 2023, 1:17μ€ν
17
Ah I misread the original issue, itβs not about the general whisper functionality, gotcha! @fzngagan is already on the case it seems
1κ°μ μ’μμ
Lhc_fl
(Linca)
5μ 10, 2023, 1:37μ€ν
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,
});
}
);
});
},
};
Apparently this code is broken. siteSettings.enable_whispers has been modified to siteSettings.whisper_allowed_groups.
You can try my fork here:
https://github.com/Lhcfl/discourse-toggle-whisper
3κ°μ μ’μμ
ganncamp
(G Ann Campbell)
5μ 10, 2023, 2:20μ€ν
19
Thanks @Lhc_fl ! Unfortunately, I donβt think I can try your fork since weβre on a hosted instance. But I appreciate your quick investigation! Maybe that will speed up the official fix.
1κ°μ μ’μμ
You can have any theme component you like. Itβs only plugins that need to be official (or vetted)
However, I think @fzngagan will want to fix this one up, so if you can wait it may be better in this case.
2κ°μ μ’μμ
merefield
(Robert)
5μ 10, 2023, 2:48μ€ν
21
Itβs actually a pavilion repo
@Lhc_fl PR and I will review.
2κ°μ μ’μμ
Do you want to add the pavilion tag?
1κ°μ μ’μμ
Lhc_fl
(Linca)
5μ 10, 2023, 2:57μ€ν
23
5κ°μ μ’μμ
merefield
(Robert)
5μ 10, 2023, 2:58μ€ν
24
Yeah letβs do that and Iβll discuss if @fzngagan wants to pass the Topic over.
1κ°μ μ’μμ
@merefield Is there any movement on this? I think it may still be in limbo?
3κ°μ μ’μμ
merefield
(Robert)
5μ 31, 2023, 9:20μ€μ
27
Itβs waiting on a (presumably trivial) org decision. I chased today.
2κ°μ μ’μμ