Toggle Whisper 👁

Sorted. This is now with the original author who can take this forward.

2 Likes

Thanks for sorting that out. :pray: :slight_smile:

3 Likes

@ganncamp
I’ve fixed the immediate issue. There’s one caveat though. Currently the Discourse backend only supports staff users to be able to switch a post’s post_type so I have made the :eye: toggle icon to to appear if a user is in whispers_allowed_groups and also a staff member. Do let us know your thoughts on this.

3 Likes

I appreciate the effort. I came up with came up with a solution which reduces the complexity a bit. Also thanks for pointing out the actual cause.

2 Likes

That’s fine for us; only staff can see whispers.

And… I’m not seeing this on my instance yet…?

1 Like

And now it works! Thanks!

2 Likes

image
Breaking change on new version of discourse

5 Likes

I recently ran into the same problem as well, so I rewrote the component and made a PR. Pull requests · fzngagan/discourse-toggle-whisper

@fzngagan Can you take a look at it?

11 Likes

Just tested it and it works like a charm. The code looks nice too. Thanks so much for this, it save me a bunch of work. Merged :tada:

5 Likes


It does have some issues though, when not logged in.

it causes much more than just 1 error also.

3 Likes

I made a quick PR to fix the issue :+1: (@fzngagan)

5 Likes

Nice one! i love coding… a simple ? and the problem is solved :joy:

3 Likes