Commit Graph

28 Commits (ddc262593449357e4d0399af82d26cee0fb65c45)

Author SHA1 Message Date
Martijn Braam c0be3e585a
Enable intra-word emphasis supression in markdown (#999)
This fixes plain links sent to Matrix being broken if they contain
underscores. Fixes issue #997
4 years ago
Wim 585d1556c1
Disable smartypants in markdown parser. Fixes #989, #983 (#993) 4 years ago
Benjamin 0917dc8766 Update markdown parsing library to github.com/gomarkdown/markdown (#944) 5 years ago
Wim e955a056e2
Trim <p> and </p> tags (matrix). Closes #686 (#753) 5 years ago
Wim 26a7e35f27
Add MediaConvertWebPToPNG option (telegram). (#741)
* Add MediaConvertWebPToPNG option (telegram).

When enabled matterbridge will convert .webp files to .png files
before uploading them to the mediaserver of the other bridges.

Fixes #398
5 years ago
Wim bf21604d42
Make all loggers derive from non-default instance (#728) 5 years ago
Wim 04567c765e
Add support for markdown to HTML conversion (matrix). Closes #663 (#670)
This uses our own gomatrix lib with the SendHTML function which
adds HTML to formatted_body in matrix.
golang-commonmark is used to convert markdown into valid HTML.
6 years ago
Duco van Amstel da8e415ae1 Use logrus imports instead of log (#662) 6 years ago
Duco van Amstel ce21ba1545 Fix golint linter issues and enable it in CI (#593) 6 years ago
Duco van Amstel 85564a35fd Fix IRC line splitting. Closes #584 (#587) 6 years ago
Wim 399789811e Make gocritic linter happy 6 years ago
Duco van Amstel d2a1dc792f Refactor and clean-up handlers. (slack) (#533) 6 years ago
Wim 2597c9bfac Clip too long messages sent to discord (discord). Closes #440 6 years ago
Wim e4b72136b8 Fix possible panic. #448 6 years ago
Wim bd9ea7a88d Add MediaDownloadBlacklist option. Closes #442 6 years ago
Liam Stanley 51327a4056 Reconnect on quit. (irc) See #431 (#445)
* potential fixes for #431
* go: fix formatting/gofmt/goreturns
6 years ago
Wim 8a8b95228c Remove message newline (telegram). #399 6 years ago
Wim 31a752fa21 Add missing import 6 years ago
Wim a83831e68d Remove empty newlines from messages (telegram) #399 6 years ago
Wim 1578ebb0e2 Refactor slack 6 years ago
Wim bd2a672c14 Refactor mattermost 6 years ago
Wim 4c506f7cc3 Use MediaServerDownload instead of MediaServerUpload for avatars 6 years ago
Wim 7886f05e88 Download (and upload) avatar images from mattermost and telegram when mediaserver is configured. Closes #362
An extra avatarMap (cache) is created for mattermost and telegram.
If MediaServerUpload is configured, the avatar images of users are downloaded the first time a
user sends a message.
If this download succeeds a message with EVENT_AVATAR_DOWNLOAD is sent to the originating protocol.
This message also contains a SHA field (in msg.Extra["file"]), if this is not empty, the sha will
be added to the avatarMap. (so we now have a userid-sha cache)

Next time this user sends a message, the MediaServerUpload/sha/userid.png URL will be used as the
avatar field.
6 years ago
Wim 2b15739b48 Remove double close 6 years ago
Wim 3480c88e90 Do not close body on err. Closes #364 6 years ago
Wim 80822b7fff Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 7 years ago
Wim e0cbb69a4f Add MessageSplit option to split messages on MessageLength (irc). Closes #281 7 years ago
Wim ba5649d259 Add helper 7 years ago