fzngagan
(Faizaan Gagan)
2021 年3 月 2 日 14: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!
9 个赞
Brilliant component!
is this possible to just make it so it appears on staff posts?
4 个赞
fzngagan
(Faizaan Gagan)
2021 年3 月 3 日 07:04
5
I’ll take a look at this request soon.
p.s.
This is addressed now.
2 个赞
j.jaffeux
(Joffrey Jaffeux)
2021 年3 月 3 日 07: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)
2021 年3 月 3 日 07: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)
2023 年5 月 10 日 13:09
8
我们安装了此组件,但切换开关不再显示。
它是否已停止工作,还是我们可能在其他地方(对我们的主题?)进行了某些编辑,无意中阻止了它?
chapoi
2023 年5 月 10 日 13:17
17
啊,我误读了原始问题,这与一般的耳语功能无关,明白了!@fzngagan 似乎已经在处理了
1 个赞
Lhc_fl
(Linca)
2023 年5 月 10 日 13: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,
});
}
);
});
},
};
显然这段代码坏了。siteSettings.enable_whispers 已被修改为 siteSettings.whisper_allowed_groups。
你可以在我的分支上尝试:
Allows staff to change a post to whisper and vice-versa
3 个赞
ganncamp
(G Ann Campbell)
2023 年5 月 10 日 14:20
19
感谢 @Lhc_fl !遗憾的是,我认为我无法尝试你的分支,因为我们使用的是托管实例。但我很感谢你快速的调查!也许这能加快官方修复的速度。
1 个赞
您可以拥有任何您喜欢的组件主题。 只有插件才需要是#官方的(或经过审查的)
不过,我认为 @fzngagan 会想修复这个,所以如果您能等待,在这种情况下可能会更好。
2 个赞
好的,我们这样做,我会讨论是否 @fzngagan 想把这个话题转交给他。
1 个赞
@merefield 这个有进展吗?我认为它可能仍然处于停滞状态?
3 个赞
它正在等待一个(可能微不足道的)组织决定。我今天进行了催促。
2 个赞