-
Notifications
You must be signed in to change notification settings - Fork 700
various improvements to attachment bridging #2172
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
base: master
Are you sure you want to change the base?
Conversation
previously, the urls were just appended to the message content. i couldn't find any other assignments directly to Extra["file"] anywhere in the codebase, so maybe there's a better way to do this.
many clients will only display files inline if the message body itself exactly matches the attachment URL. see https://docs.modernxmpp.org/client/protocol/#communicating-the-url
previously, the code assumed each file had a Data, and crashed if this was not present. now, we detect this condition, and send the URL instead. the discord client will display URLs in a message of their own as inline embeds, without any special behavior needed on our part. this commit makes the same changes to the webhook and non-webhook code.
|
Code Climate has analyzed commit ce93d90 and detected 0 issues on this pull request. View more on Code Climate. |
|
Im thinking of merging this to my fork. https://github.com/bibanon/matterbridge/ Has your commits still been working for you today? |
|
re the xmmp commit: for Conversation and Dino it works, I had initially the directory permissions for the media server wrong |
hi! yes, i'm still using these in my own private fork today. do you know if there's a maintained fork of matterbridge nowadays? i could find both bibanon/matterbridge and matterbridge-org/matterbridge |
* Update dependencies * Fix whatsmeow API changes
This prevents UnrealIRCd from sending message history unprompted when joining a channel, which can otherwise lead to messages getting bridged multiple times. See: https://www.unrealircd.org/docs/FAQ#History_mode_.28.2BH.29_causes_my_bot_to_re-trigger_previous_commands_-_What_do_I_do.3F
|
Please consider submitting some of these improvements as individual PRs to matterbridge-org/matterbridge which is the best maintained fork right now. |
briefly:
Extra["file"]please see the full commit messages for more detail.