kensanata / bitlbee-mastodon

A Mastodon plugin for Bitlbee
https://alexschroeder.ch/software/Bitlbee_Mastodon
GNU General Public License v2.0
30 stars 7 forks source link

More handling of sensitive/spoiler/nsfw posts #27

Closed iguanaonmystack closed 6 years ago

iguanaonmystack commented 6 years ago

Hi @kensanata,

I've added a couple of extra settings to allow customisable handling of posts marked as sensitive by their author. Recently I've seen this used for posting spoilers so the content can be entirely hidden in such situations. I've also added customising of the NSFW text, since it's not always used for nsfw content. (It also means you can set it to a colour code like ^C5 which creates a pleasant display.)

What do you think? masto

kensanata commented 6 years ago

I like it! I guess now we need a new command called show which will show a toot and ignore the setting?

kensanata commented 6 years ago

I added some more documentation in c67e9d2 and regenerated the HELP.md file.

iguanaonmystack commented 6 years ago

A "show" command is a great idea; I'll see if I can get something to that effect done soonish.

The more I'm interacting with people using CW the more I'm noticing more things to add to the implementation here. For instance in replies with CW, the username(s) of the addressed recipients are shown outside of the hidden text. So I might see if that's an easy thing to add in too (it'd mean people got highlighted for replies to them too, which would be handy). And there's #23 too of course.

kensanata commented 6 years ago

Yeah. And preserving an existing CW for replies is going to be a major headache. Either it’s a two step process where we first retrieve the status again and then post it with the right CW or we will have to cache all the CWs we have seen. Either option is annoying. Much like the issue of replying to a status which mentions other people.