Commit Graph

401 Commits

Author SHA1 Message Date
Discourse Translator Bot ba40ede510
Update translations (#145) 2022-11-16 11:37:10 +01:00
Discourse Translator Bot 01a3766911
Update translations (#143) 2022-11-02 15:13:39 +01:00
David Taylor 820d04d1b2
SECURITY: Improve SSRF protections (#144)
See https://github.com/discourse/discourse/security/advisories/GHSA-rcc5-28r3-23rr
2022-11-01 17:36:56 +00:00
Jan Cernik 7b8a1a3960
DEV: Replace bootbox confirm dialog (#142) 2022-10-27 10:16:00 -03:00
David Taylor 5047583d95
DEV: Bump rubocop-discourse (#141)
* DEV: Bump rubocop-discourse

* Fix rubocop violations
2022-10-03 21:36:52 +02:00
Discourse Translator Bot 7bf7368520
Update translations (#140) 2022-09-27 19:07:51 +02:00
Discourse Translator Bot 0849e5b4fc
Update translations (#137) 2022-09-13 16:04:13 +02:00
Discourse Translator Bot 5ac334a729
Update translations (#136) 2022-08-30 20:15:54 +02:00
Martin Lim 4e73da8856
FEATURE: Introduce Guilded as a provider (#135)
Support for integration with https://www.guilded.gg/
2022-08-30 18:10:17 +01:00
Loïc Guitaut c68fde5d2b FIX: Don’t process commands when 'text' is missing
This patch concerns the Telegram integration. Currently, we always try
to process commands when we receive a hook from Telegram. To do so we
rely on the `text` parameters from a Telegram message but the
API documentation tells us this parameters is actually optional. It
means sometimes it’s not present in the payload we receive but we still
try to access it resulting in a crash.

This patch addresses the issue by simply returning early from the
`#process_command` method when `text` is missing from the payload since
we don’t have anything to process then.
2022-07-18 18:11:22 +02:00
Discourse Translator Bot 778bb3aad6
Update translations (#133) 2022-06-21 15:26:55 +02:00
discoursebot f1f6e04488
DEV: Update CI workflows (#132)
Co-authored-by: discoursebuild <build@discourse.org>
2022-06-17 21:34:10 +02:00
Leonardo Mosquera fd6be34974
FIX: don't send nil user.name for MS Teams (#131)
Because Teams rejects the request for having a JSON `null` where a string is expected.
2022-06-16 17:12:56 +01:00
David Taylor 157f3e910d
FIX: Respect core settings when rendering user names/usernames (#129)
This commit centralizes 'display name' generation into a helper, and updates it to respect core preferences for `enable_names` and `prioritize_username_in_ux`.
2022-05-30 17:13:55 +01:00
discoursebot 6c052c118d
DEV: Update CI workflows (#128)
Co-authored-by: discoursebuild <build@discourse.org>
2022-05-23 16:59:55 +02:00
dependabot[bot] ef67dd235e
Bump async from 2.6.3 to 2.6.4 (#127)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 18:02:48 +02:00
Discourse Translator Bot 8a45bb42a9
Update translations (#126) 2022-04-19 15:45:00 +02:00
Kris e3426c40fe
UX: admin controls alignment (#125) 2022-04-15 11:22:47 -04:00
dependabot[bot] eaa7de8c2b
Bump ansi-regex from 4.1.0 to 4.1.1 (#124)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 13:49:16 +02:00
dependabot[bot] f587cb9c30
Bump minimist from 1.2.5 to 1.2.6 (#123)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 13:42:37 +02:00
Discourse Translator Bot 7c96d62ddb
Update translations (#121) 2022-04-05 15:21:24 +02:00
David Taylor cd6e4a8b62
FEATURE: Allow `[quote]` to be disabled for slack transcripts (#120)
https://meta.discourse.org/t/222145
2022-04-01 13:49:34 +01:00
David Taylor 3900586557
FIX: Correct error in AdminDashboardData problem check (#119)
This would cause admin checks to fail when the plugin is disabled.

Unfortunately plugin-contributed AdminDashboardData checks are not currently testable, but I hope to fix that in a future core commit.

Follow-up to 8de3e498b2
2022-03-31 12:14:40 +01:00
Discourse Translator Bot d63e11cf33
Update translations (#118) 2022-03-30 14:52:54 +02:00
David Taylor 8de3e498b2
FIX: Only show admin dashboard errors when plugin/provider enabled (#117) 2022-03-25 15:53:49 +00:00
discoursebot 0c367e19ca
DEV: Update CI workflows (#116)
Co-authored-by: discoursebuild <build@discourse.org>
2022-03-22 14:02:57 +01:00
David Taylor d63477fec0
FIX: Use correct identifier in transcript thread hint (#115)
We were using the internal UID of the channel in the hint, which would then fail to match any 'channel' configs in Discourse (which use the human-friendly `#channel` format). This was causing automatic threading for transcripts to fail.
2022-03-21 16:03:23 +00:00
David Taylor cd5387c567
DEV: Fix flaky specs (#114) 2022-03-15 13:47:53 +00:00
David Taylor 20f0b1c6ce
DEV: Cache slack users list for 10 minutes (#113)
This should help to avoid Slack API rate limiting in very large slack communities
2022-03-15 13:32:28 +00:00
David Taylor 55f9b7873b
FIX: Use correct copy for 'all categories' (#112)
The select-kit API has changed since this plugin's original implementation. `rootNoneLabel` and `rootNone` have been replaced with `none`
2022-03-15 00:00:29 +00:00
Jarek Radosz 359d6f6be8
DEV: Fix imports (#111) 2022-03-06 21:18:46 +01:00
Jarek Radosz 46cdce24bd
DEV: Lose the es6 suffix (#110) 2022-03-04 19:27:42 +01:00
Discourse Translator Bot 5db7e159d9
Update translations (#109) 2022-03-01 22:56:25 +01:00
Blake Erickson 0eebd9f3ed
DEV: Adds post_to_slack scriptable for automation (#108)
This allows for the discourse automation plugin to have a "Send Slack
Message" script.

The script fields are a message, url, and slack channel. This will allow
for a custom slack message to be posted but can link back to an
arbitrary url (hopefully a discourse url) like a list of unanswered
topics instead of strictly only allowing a slack message that links back
to a Discourse Post object.
2022-02-25 12:17:20 -07:00
Gavin 1cd745010a
DEV: Update README.md (#107)
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2022-02-21 21:03:09 +01:00
David Taylor 36087f3004
DEV: Update Discord webhook domain (#106)
discordapp.com is being deprecated and replaced with discord.com - https://github.com/discord/discord-api-docs/discussions/4510
2022-02-15 11:53:53 +00:00
discoursebot ddee0c4417
DEV: Update CI workflows (#105)
Co-authored-by: discoursebuild <build@discourse.org>
2022-01-25 11:27:00 +00:00
Discourse Translator Bot 64aedd3f8d
Update translations (#104) 2022-01-18 14:41:24 +01:00
Discourse Translator Bot 45a16e2c40
Update translations (#103) 2022-01-11 14:21:26 +01:00
Andrei Prigorshnev 356a1d1a72
DEV: migrate routes to the new @action pattern (#100) 2022-01-06 15:16:23 +04:00
Discourse Translator Bot e9522c5f7d
Update translations (#102) 2022-01-04 17:39:24 +01:00
Dax74 4ac3f26135
UX: Correct typo in Microsoft Teams channel config (#101) 2021-12-31 13:03:05 +00:00
Discourse Translator Bot 693c7e9aae
Update translations (#99) 2021-12-28 14:13:47 +01:00
discoursebot 46b2c05cbd
DEV: Update CI workflows (#98)
Co-authored-by: davidtaylorhq <davidtaylorhq@users.noreply.github.com>
2021-12-16 16:17:55 +00:00
David Taylor 6e7fa8ebd1
FIX: Store slack thread_ts on a per-channel basis (#95)
When notifications about a topic are posted to multiple slack channels, and the Discourse channels are configured to "thread" the notifications, each channel will have a different thread_id. Previously we were only storing a single slack thread id per Discourse topic. This commit fixes that logic, so that threads in different channels are tracked separately.
2021-12-02 14:29:06 +00:00
David Taylor 15e8f9470d
FEATURE: Allow selecting 'automatic' groups for rules (#97) 2021-12-02 14:28:05 +00:00
David Taylor 9bfb3ec4b2
FIX: Ensure edit modal validation works on first opening (#96)
(Ember's `defineProperty` no longer sees to fire the notifyPropertyChange event, so we need to do it manually)
2021-12-02 14:27:50 +00:00
Aljaž Srebrnič ae0389ca89
FIX: Ensure telegram bot only responds to slash-commands (#94)
Co-authored-by: Froggy C <me@froggyc.eu>
2021-12-01 22:19:50 +00:00
Jarek Radosz 369ca14711
DEV: Fix imports in tests, minor clean up (#93)
Still doesn't work with ember cli though.
2021-11-14 14:14:49 +01:00
David Taylor 08dd442c1c
FIX: Remove use of InputValidation library (#92)
This was deprecated in e39d89ecd9, and stopped working following the move to Ember CLI
2021-11-09 14:45:50 +00:00