159 Commits

Author SHA1 Message Date
James Nylen
5ca3652ba7 Use Slack display names instead of the "name" field (#29)
* Use Slack display names instead of the "name" field

The "name" field is the left-hand side of the email address in many
cases.  This information is not otherwise available so we shouldn't
expose it in forum posts.

* Fall back to real_name, add comments

* Store users as a hash

This should avoid a lot of O(n) lookups

* Format user mentions with the correct name also

* Fix the tests (first try)

* Fix the tests (second try); add a test for user mentions

* Fix the tests (third try)

* Empty commit to trigger Travis

* Fix the tests (fourth try)

* Fix the tests (fifth try)

* Change spaces to underscores

* Updates per feedback
2019-07-04 14:50:07 -04:00
Guo Xiang Tan
cef085d0b6 Fix the build. 2019-06-06 10:26:24 +08:00
Guo Xiang Tan
3eb8e97f37 DEV: Remove deprecation warning. 2019-06-06 09:51:40 +08:00
David Taylor
f75903cae5 FIX: Determine uncategorized category name using new core pattern 2019-06-04 18:47:32 +01:00
Tomas Varaneckas
95d8d5e9ea FIX: make plugin compatible with older Discourse (#28)
@tgxworld
2019-05-16 08:24:17 +08:00
Guo Xiang Tan
ac288b9300 Add frozen string literal comment to files. 2019-05-13 10:37:49 +08:00
David Taylor
bf30b755cf Remove HipChat integration
As of February 15th, HipChat has been declared end-of-life. For more information, see https://community.atlassian.com/t5/Stride-articles/Stride-and-Hipchat-Cloud-have-reached-End-of-Life-updated/ba-p/940248
2019-04-15 17:56:01 +01:00
David Taylor
b7dff35722 FIX: Handle mailto links in slack messages 2019-01-03 11:14:26 +00:00
Tisza Gergő
bf1939f08d FEATURE: Add Matrix option for using plain text instead of notice (#25)
Notices are problematic on certain IRC clients and lead to bans
if the Matrix channel is bridged to IRC.
2018-12-28 23:44:43 +00:00
Mateusz Bugowski
1a08d64785 FIX: loading user.list longer than 1000 (#24) 2018-12-14 01:03:49 +00:00
Guo Xiang Tan
2b357b2dfe Add support for new upload site settings.
44391ee8ab
2018-11-14 15:17:44 +08:00
Guo Xiang Tan
c44ac56d32 Make rubocop happy. 2018-06-08 09:52:35 +08:00
Sam
d481205999
Merge pull request #20 from davidtaylorhq/private_slash_commands
Slash command and transcript improvements
2018-05-18 10:47:37 +10:00
David Taylor
0ed6343874 Add basic support for thread transcripts 2018-04-08 03:22:58 +01:00
David Taylor
427cfc2305 Use generic ‘conversations’ API endpoint to enable transcripts for slack IMs and groups 2018-04-08 02:50:46 +01:00
David Taylor
180011c097 Fix slash commands in private groups 2018-04-08 02:26:36 +01:00
rohitsden
79288fc254 Update HipChat WebHook URL validation to check for anything that isn't space. 2018-01-13 21:58:40 -05:00
rohitsden
324aca0fad Fix HipChat WebHook URL validation. 2018-01-12 19:36:51 -05:00
Francis Brunelle
1078f8089e use SiteSetting.chat_integration_matrix_excerpt_length for the Matrix provider (#17) 2017-12-27 16:35:32 +08:00
Vinoth Kannan
8168c717a8 Return help text if message text is unavailable 2017-12-06 13:07:45 +05:30
Joshua Rosenfeld
2ca3fb1d21
Remove thumb_url from Rocket.Chat
Results in broken thumbnail appearing in all posts.
2017-11-30 09:56:47 -05:00
David Taylor
da9ee8dcb5 Fix mattermost icon selection 2017-11-27 16:14:43 +08:00
David Taylor
5f555849e5 Replace render nothing: true with a JSON response. This has the added benefit of showing a “loading” message (#12)
render:nothing was producing an error 500 for some reason
2017-11-27 16:08:19 +08:00
David Taylor
b69abe3913 Include attachments in message selection dropdowns (#13)
* Include attachments in message selection dropdowns

* DRY up message attachment string generation

* Add specs for attachments in UI
2017-11-27 16:07:54 +08:00
David Taylor
6ed0deedf8 Don’t load responses to threads (#14)
* Don’t load responses to threads

* Add test case for ignoring threaded messages

* Appease rubocop
2017-11-27 16:07:25 +08:00
Maja Komel
7889691cdb fix rubocop offenses 2017-10-17 12:21:36 +02:00
Maja Komel
92d6a6ba0e Add notification support for Flowdock 2017-10-16 16:44:21 +02:00
Guo Xiang Tan
2b74fe0767 Remove unnecessary extension. 2017-10-10 13:01:46 +08:00
Guo Xiang Tan
b19550502e Fix the build. 2017-10-10 12:56:48 +08:00
Guo Xiang Tan
5d11f443c0 REFACTOR: No need for return at end of each method. 2017-10-10 12:02:27 +08:00
Guo Xiang Tan
efddfe1d9b Minor refactor. 2017-10-10 10:08:26 +08:00
Guo Xiang Tan
f836047f90 REFACTOR: Clean up code in plugin. 2017-10-03 17:42:07 +08:00
David Taylor
47a6a89e5a Defer processing of transcripts to avoid timeouts 2017-09-15 23:12:02 +01:00
David Taylor
6a976c4d66 Remove thumb_url from Mattermost, and restore accidental deletion from Slack 2017-09-09 23:08:45 +01:00
David Taylor
438a9d92fe Remove incorrect thumb_url from mattermost 2017-09-09 21:07:07 +01:00
Guo Xiang Tan
16c5607fa4 Use before_action instead of before_filter for Rails 5.1 compatibility. 2017-09-04 10:44:32 +08:00
David Taylor
1fa228b68c Add site setting to allow adding “content” to Discord messages
This can include ‘mentions’ such as `@everyone`
2017-09-01 21:03:31 +01:00
David Taylor
9d99f5659a Adjust gitter regex 2017-08-31 01:51:28 +01:00
jafethdc
e90d65f5d5 Add notifications support for Gitter 2017-08-30 18:11:06 -05:00
David Taylor
5ea6553236 Add support for Rocket.Chat 2017-08-23 16:43:27 +01:00
David Taylor
9b229b63f9 Use generic messages API for Zulip
It is now available to bots, so there is no need for the custom discourse endpoint any more :)
2017-08-23 12:36:11 +01:00
David Taylor
e3f09d8eb5 Add Zulip support 2017-08-21 23:34:04 +01:00
David Taylor
148dd8df6b Tidy up Slack provider implementation 2017-08-21 15:28:37 +01:00
David Taylor
ccb8571da5 Fix hipchat colour regex 2017-08-16 15:51:46 +03:00
David Taylor
064079a4ed Add auto-detection of first message in conversation 2017-08-15 18:19:24 +03:00
David Taylor
3314721232 RSpec tests for slack transcript posting 2017-08-15 17:44:51 +03:00
David Taylor
658553e875 Refactor transcript posting 2017-08-15 10:26:03 +03:00
David Taylor
9604edaf88 Allow selecting first transcript message using a URL 2017-08-04 13:06:57 +01:00
David Taylor
9dc5445b7b Fix spec 2017-08-04 00:54:11 +01:00
David Taylor
12f3b96e02 Improve slack transcript posting UI with message buttons 2017-08-04 00:47:04 +01:00