This project is mirrored from https://github.com/discourse/discourse.
Pull mirroring updated .
- 25 May, 2022 11 commits
-
-
Bianca Nenciu authored
Censored watched words were not censored inside the title of an inline oneboxes. Malicious users could exploit this behaviour to insert bad words. The same issue has been fixed for regular Oneboxes in commit d184fe59.
-
dependabot[bot] authored
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 3.10.0 to 3.10.1. - [Release notes](https://github.com/grosser/parallel_tests/releases) - [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md) - [Commits](https://github.com/grosser/parallel_tests/compare/v3.10.0...v3.10.1 ) --- updated-dependencies: - dependency-name: parallel_tests dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by:
dependabot[bot] <[email protected]> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Bumps [jquery-rails](https://github.com/rails/jquery-rails) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/rails/jquery-rails/releases) - [Changelog](https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/rails/jquery-rails/compare/v4.4.0...v4.5.0 ) --- updated-dependencies: - dependency-name: jquery-rails dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by:
dependabot[bot] <[email protected]> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Alan Guo Xiang Tan authored
-
Alan Guo Xiang Tan authored
`run-qunit.js` does not expect QUnit tests to start automatically but our wizard QUnit setup did not respect the `qunit_disable_auto_start` URL param. Hence, tests would start running automatically and when a subsequent `QUnit.start()` function call is made, we ended up getting a `QUnit.start cannot be called inside a test context.` error. This error can be consistently reproduced in the `discourse:discourse_test` container but not in the local development environment. I do not know why and did not feel like it is important at this point in time to know why.
-
Alan Guo Xiang Tan authored
-
Alan Guo Xiang Tan authored
-
Penar Musaraj authored
This reverts commit 71c74a26.
-
Alan Guo Xiang Tan authored
There is no need for the extra protection on the client side if there is a bug on the server side. In fact, we want the bug to be surfaced so that it can be fixed on the server side.
-
Martin Brennan authored
Sometimes we need to render the icon as a call to action to create a bookmark at which point the bookmark does not yet exist, so we need to just show the normal bookmark icon and a create title. Also adds a CSS class for the bookmark existing and not existing for styling.
-
Martin Brennan authored
This improves the bookmark-icon title to be more like the post bookmark icons, to include the special formatted date as well as the name of the bookmark.
-
- 24 May, 2022 9 commits
-
-
Penar Musaraj authored
When searching for PMs or PMs in a group inbox, results in the header search were not being limited to 5 with a "More" link to the full page search. This PR fixes that. It also simplifies the logic and updates the search API docs to include recently added `in:messages` and `group_messages:groupname` options.
-
Loïc Guitaut authored
We never applied `config.load_defaults` since its inception (Rails 5.0) and doing so is necessary to properly upgrade to all the Rails 7 new defaults.
-
Discourse Translator Bot authored
-
David Taylor authored
-
Martin Brennan authored
Gets rid of old bookmark app event and deletes anything leftover from polymorphic bookmark changeover.
-
Martin Brennan authored
Since fcc2e7eb we no longer use these columns, will delete in a few months.
-
dependabot[bot] authored
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 3.8.1 to 3.10.0. - [Release notes](https://github.com/grosser/parallel_tests/releases) - [Changelog](https://github.com/grosser/parallel_tests/blob/master/CHANGELOG.md) - [Commits](https://github.com/grosser/parallel_tests/compare/v3.8.1...v3.10.0 ) --- updated-dependencies: - dependency-name: parallel_tests dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by:
dependabot[bot] <[email protected]> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Alan Guo Xiang Tan authored
Follow-up to fd1dc91e
-
Martin Brennan authored
When saving / creating bookmarks, we have code to save the user's preference of bookmark_auto_delete_preference to their user_options. Unfortunately this can cause weirdness when plugins have code using BookmarkManager to set the auto delete preference for only a specific bookmark. This commit introduces a save_user_preferences option (false by default) so that this user preference is not saved unless specified by the consumer of BookmarkManager, so plugins will not have to worry about it.
-
- 23 May, 2022 14 commits
-
-
Michael Fitz-Payne authored
The `PG::Connection#ping` method is only reliable for checking if the given host is accepting connections, and not if the authentication details are valid. This extends the healthcheck to confirm that the auth details are able to both create a connection and execute queries against the database. We expect the empty query to return an empty result set, so we can assert on that. If a failure occurs for any reason, the healthcheck will return false.
-
Bianca Nenciu authored
This targets only the local Oneboxes and allows plugins to customize regular or inline Oneboxes for routes inside the site.
-
Andrei Prigorshnev authored
-
David Taylor authored
Previously, with the default `editing_grace_period`, hotlinked images were pulled 5 minutes after a post is created. This delay was added to reduce the chance of automated edits clashing with user edits. This commit refactors things so that we can pull hotlinked images immediately. URLs are immediately updated in the post's `cooked` HTML. The post's raw markdown is updated later, after the `editing_grace_period`. This involves a number of behind-the-scenes changes including: - Schedule Jobs::PullHotlinkedImages immediately after Jobs::ProcessPost. Move scheduling to after the `update_column` call to avoid race conditions - Move raw changes into a separate job, which is delayed until after the ninja-edit window - Move disable_if_low_on_disk_space logic into the `pull_hotlinked_images` job - Move raw-parsing/replacing logic into `InlineUpload` so it can be easily be shared between `UpdateHotlinkedRaw` and `PullUserProfileHotlinkedImages`
-
David Taylor authored
Previously this mapping of **cooked** images was only being run for oneboxes. Now it runs for all images, so we can transform hotlinked images without needing to immediately update `raw`
-
David Taylor authored
This feature only was only demuxing stdout, not stderr. That means that stdout and stderr output appears out-of-order, and makes debugging migrations very confusing. In future we may want to add stderr support to the demuxing. But right now, the concurrency variable is hard-coded to 1. Therefore the easiest fix is to bypass the demuxing.
-
Gerhard Schlager authored
It also ensures that only human users are updated and replaces usage of `send` with `public_send`. Also, it adds more specs for existing code.
-
Osama Sayegh authored
Meta topic: https://meta.discourse.org/t/prevent-to-linkify-when-there-is-a-redirect/226964/2?u=osama. This commit adds a new site setting `block_onebox_on_redirect` (default off) for blocking oneboxes (full and inline) of URLs that redirect. Note that an initial http → https redirect is still allowed if the redirect location is identical to the source (minus the scheme of course). For example, if a user includes a link to `http://example.com/page` and the link resolves to `https://example.com/page`, then the link will onebox (assuming it can be oneboxed) even if the setting is enabled. The reason for this is a user may type out a URL (i.e. the URL is short and memorizable) with http and since a lot of sites support TLS with http traffic automatically redirected to https, so we should still allow the URL to onebox.
-
Martin Brennan authored
This component will be useful for chat, and also moves the definition of the icon for with and without reminders to the bookmark model as consts, so they can easily be referenced in other places.
-
Gerhard Schlager authored
Previously true/false sometimes was logged as t or f
-
Gerhard Schlager authored
-
dependabot[bot] authored
Bumps [oj](https://github.com/ohler55/oj) from 3.13.11 to 3.13.13. - [Release notes](https://github.com/ohler55/oj/releases) - [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md) - [Commits](https://github.com/ohler55/oj/compare/v3.13.11...v3.13.13 ) --- updated-dependencies: - dependency-name: oj dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by:
dependabot[bot] <[email protected]> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Martin Brennan authored
Incorporates learnings from /t/64227: * Changes the code to set access control posts in the rake task to be an efficient UPDATE SQL query. The original version was timing out with 312017 post uploads, the new query took ~3s to run. * Changes the code to mark uploads as secure/not secure in the rake task to be an efficient UPDATE SQL query rather than using UploadSecurity. This took a very long time previously, and now takes only a few seconds. * Spread out ACL syncing for uploads into jobs with batches of 100 uploads at a time, so they can be parallelized instead of having to wait ~1.25 seconds for each ACL to be changed in S3 serially. One issue that still remains is post rebaking. Doing this serially is painfully slow. We have a way to do this in sidekiq via PeriodicalUpdates but this is limited by max_old_rebakes_per_15_minutes. It would be better to fan this rebaking out into jobs like we did for the ACL sync, but that should be done in another PR.
-
Martin Brennan authored
This commit migrates all bookmarks to be polymorphic (using the bookmarkable_id and bookmarkable_type) columns. It also deletes all the old code guarded behind the use_polymorphic_bookmarks setting and changes that setting to true for all sites and by default for the sake of plugins. No data is deleted in the migrations, the old post_id and for_topic columns for bookmarks will be dropped later on.
-
- 22 May, 2022 1 commit
-
-
Johannes Faigle authored
-
- 20 May, 2022 5 commits
-
-
Jordan Vidrine authored
-
David Taylor authored
This is unusual because it is not used directly by any core UI. It was added for theme components.
-
Arpit Jalan authored
This commit allows us to run plugin tests for `server_plugin_outlet` method.
-
dependabot[bot] authored
Bumps [image_size](https://github.com/toy/image_size) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/toy/image_size/releases) - [Changelog](https://github.com/toy/image_size/blob/master/CHANGELOG.markdown) - [Commits](https://github.com/toy/image_size/compare/v3.0.1...v3.0.2 ) --- updated-dependencies: - dependency-name: image_size dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by:
dependabot[bot] <[email protected]> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-