Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the use of content warnings #2

Closed
Aldarone opened this issue Nov 11, 2017 · 3 comments
Closed

Allow the use of content warnings #2

Aldarone opened this issue Nov 11, 2017 · 3 comments
Milestone

Comments

@Aldarone
Copy link

A shaarlink can feature a pretty long comment, which, in turn can become hard to read on mastodon.

This problem can be solved with the use of the native Content Warning feature of Mastodon. It would require an optional MASTODON_CW_FORMAT which would be an empty string by default and accept the same format tags as MASTODON_TOOT_FORMAT.

When this option is filled up, the plugin would put its formatted content in the mastodon Content Warning field.

As for the length issues that may rise by having two places to check instead of one, Mastodon considers the length of a toot as being [CW field length] + [Toot field length] so it should not be much of a hassle to deal with.

And for the use case, consider the readability of these example posts :

MASTODON_TOOT_FORMAT : ${title}\n\n${description}\n\n-- ${url}\n\n${tags} #shaarlien
capture d ecran_2017-11-11_08-53-47

MASTODON_CW_FORMAT : ${title}
MASTODON_TOOT_FORMAT : ${description}\n\n-- ${url}\n\n${tags} #shaarlien
capture d ecran_2017-11-11_08-56-42

@kalvn
Copy link
Owner

kalvn commented Nov 14, 2017

That's a good idea, I'll consider it. Thanks for the very good description.

@kalvn kalvn added this to the v3.0.0 milestone Jan 26, 2021
@kalvn
Copy link
Owner

kalvn commented Jan 30, 2021

This is now available in the last beta version : https://github.com/kalvn/shaarli2mastodon/releases/tag/v3.0.0-beta1

Would you like to give a try and let me know if it works as expected?

@kalvn
Copy link
Owner

kalvn commented Jun 29, 2022

v3 is out :)

@kalvn kalvn closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants