Closed selyod-ka closed 1 year ago
Very nice! Looks pretty good to me, extensible, very useful and applicable for other usecases too, not just for Twitter handles (you could set up custom replacements for keywords or hashtags, just as an example).
Do you want to create a pull request to the develop branch for this? Or if you don't have the time or energy I could instead include these changes myself, just want to make sure your contribution is properly credited. I will mention it regardless on the release notes.
Thank you for your contribution!
On a somewhat related note, now that I see this it makes me think of a potential new feature. Perhaps we could also let people include content warnings if certain keywords are present on the tweet text.
If a match is found, include the appropriate spoiler_text
(or cw
for Misskey):
https://docs.joinmastodon.org/methods/statuses/#form-data-parameters
https://misskey.io/api-doc#operation/notes/create
Something along the lines of this on the config:
content_warnings:
"War, politics":
- "war"
- "election"
- "politics"
- "far-right"
- "far-left"
"Sexual abuse":
- "sexual harassment"
- "#metoo"
Would result on the content warning being added if any of those keywords are found:
Maybe it's worth implementing.
Nice that you like it! If you don't mind, please include the changes yourself.
Sure thing! I'll add the changes and credit you on the release notes.
Thanks once again for contributing and have a nice day!
hey,
i've made a modification to pleroma-bot in order to do custom text-replacements. basically i use this, because twitter-handles and mastodon-handles sometimes differ. doing these replacements, it is possible to keep links to an account that also exists on the same mastodon-instance although the handles on twitter and mastodon are not the same. i've added:
furthermore, i have a section in
config.yml
consisting of key-value-pairs under the following key: