Sam
293b243aeb
FEATURE: special shortcut for searching for own posts ( #11541 )
...
You can now use `@me` to search for posts created by yourself, this is particularly handy if you have a long username.
`@me rainbow` will find all posts you created with the word rainbow.
Also cleans up test suite so it has no warnings.
2020-12-22 10:46:42 +11:00
David Taylor
d25fd34b44
DEV: Remove with_deleted workarounds for old Rails version ( #11550 )
...
* DEV: Remove with_deleted workarounds for old Rails version
These workarounds using private APIs are no longer required in the latest version of Rails. The referenced issue (https://github.com/rails/rails/issues/4306 ) was closed in 2013. The acts_as_paranoid workaround which this was based on was removed for rails > 5.
Switching to using a scope also allows us to use it within a `belongs_to` relation (e.g. in the Poll model). This avoids issues which can be caused by unscoping all `where` clauses.
Predicates are not necessarily strings, so calling `.join(" AND ")` can sometimes cause weird errors. If we use `WhereClause#ast`, and then `.to_sql` we achieve the same thing with fully public APIs, and it will work successfully for all predicates.
2020-12-22 10:38:59 +11:00
Rafael dos Santos Silva
32e7ee4867
FEATURE: Adds support for the WEBP image format ( #11532 )
...
Adds support for both still and animated webp images.
Animated images won't be optimized or get thumbnails.
Depends on https://github.com/discourse/discourse_docker/pull/506
and https://github.com/discourse/discourse_docker/pull/507
2020-12-21 20:09:00 -03:00
dependabot[bot]
6b500ca263
Build(deps): Bump rake from 13.0.2 to 13.0.3 ( #11549 )
...
Bumps [rake](https://github.com/ruby/rake ) from 13.0.2 to 13.0.3.
- [Release notes](https://github.com/ruby/rake/releases )
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc )
- [Commits](https://github.com/ruby/rake/compare/v13.0.2...v13.0.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 16:32:27 -05:00
dependabot[bot]
9a3ad4ee00
Build(deps): Bump regexp_parser from 2.0.0 to 2.0.1 ( #11548 )
...
Bumps [regexp_parser](https://github.com/ammar/regexp_parser ) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/ammar/regexp_parser/releases )
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.0.0...v2.0.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 16:32:09 -05:00
dependabot[bot]
45b3b7618f
Build(deps): Bump ffi from 1.14.1 to 1.14.2 ( #11547 )
...
Bumps [ffi](https://github.com/ffi/ffi ) from 1.14.1 to 1.14.2.
- [Release notes](https://github.com/ffi/ffi/releases )
- [Changelog](https://github.com/ffi/ffi/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ffi/ffi/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 16:31:06 -05:00
Rafael dos Santos Silva
c4552e9c10
FIX: Autoplay videos must always be muted ( #11533 )
...
This automatically adds the muted attribute if it's missing in a video
tag.
Co-authored-by: David Taylor <david@taylorhq.com>
2020-12-21 14:55:00 -03:00
Bianca Nenciu
38950840e0
FIX: Show restricted tags in bulk select ( #11531 )
...
Navigating to a category and tag page, selecting topics and attempting
to bulk append a tag showed all but the tags restricted to the category.
2020-12-21 12:26:51 +02:00
Arpit Jalan
bbf6cc4f18
DEV: require fileutils gem on boot ( #11542 )
2020-12-21 16:31:06 +11:00
Alan Guo Xiang Tan
d2a0462186
FIX: Re-run remove flag and queued post web hook migrations.
...
There have been production instances where the migrations has run but the records
that were meant to be deleted have not been deleted. The root cause is
unknown but the migration is safe and simple to re-run. The problem is
not reproducible locally so we're not spending too much time on digging
up the root. Time vs business cost tradeoff.
Follow-up fb15da43da
2020-12-21 10:17:08 +08:00
dependabot[bot]
504b1562d5
Build(deps): Bump rake from 13.0.1 to 13.0.2
...
Bumps [rake](https://github.com/ruby/rake ) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/ruby/rake/releases )
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc )
- [Commits](https://github.com/ruby/rake/compare/v13.0.1...v13.0.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 10:12:15 +08:00
dependabot[bot]
9dad7588db
Build(deps): Bump docile from 1.3.2 to 1.3.3
...
Bumps [docile](https://github.com/ms-ati/docile ) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/ms-ati/docile/releases )
- [Changelog](https://github.com/ms-ati/docile/blob/master/HISTORY.md )
- [Commits](https://github.com/ms-ati/docile/compare/v1.3.2...v1.3.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 10:12:06 +08:00
dependabot[bot]
84dbe7a5c5
Build(deps): Bump rubocop-rspec from 2.0.1 to 2.1.0
...
Bumps [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec ) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-rspec/releases )
- [Changelog](https://github.com/rubocop-hq/rubocop-rspec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop-hq/rubocop-rspec/compare/v2.0.1...v2.1.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 10:11:48 +08:00
dependabot[bot]
bd414008fc
DEV: Bump webmock from 3.10.0 to 3.11.0 ( #11538 )
...
Bumps [webmock](https://github.com/bblimke/webmock ) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/bblimke/webmock/releases )
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bblimke/webmock/compare/v3.10.0...v3.11.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 10:38:22 +11:00
dependabot[bot]
aff68f47d9
DEV: Bump ffi from 1.13.1 to 1.14.1 ( #11539 )
...
Bumps [ffi](https://github.com/ffi/ffi ) from 1.13.1 to 1.14.1.
- [Release notes](https://github.com/ffi/ffi/releases )
- [Changelog](https://github.com/ffi/ffi/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ffi/ffi/compare/1.13.1...1.14.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This brings us 1 step closer to working on the new ARM Macs natively.
2020-12-21 10:37:31 +11:00
Mark VanLandingham
d8e2b497f7
DEV: Move rerender on 'do not disturb' change to mixin ( #11529 )
2020-12-18 10:35:43 -06:00
Mark VanLandingham
649ed24bb4
FEATURE: Do not disturb ( #11484 )
2020-12-18 09:03:51 -06:00
Bianca Nenciu
806f05f851
FIX: Make find_by_slug_path work with default slugs ( #11501 )
...
Default slugs are generated by adding '-category' to category ID.
2020-12-18 16:05:01 +02:00
Roman Rizzi
142e0ae062
Revert "Revert "DEV: Wrap Ember.run.debounce
. ( #11352 )"" ( #11509 )
...
* Revert "Revert "DEV: Wrap `Ember.run.debounce`. (#11352 )" (#11465 )"
This reverts commit aa0d4ea764
.
* Correctly debounce onScroll function
2020-12-18 10:18:52 -03:00
Arpit Jalan
f296ca4b4a
FEATURE: allow plugins to show custom HTML via renderTags ( #11520 )
...
This commit allows discourse-assign plugin to show custom HTML via
renderTags even if topic has no tags.
2020-12-18 09:42:42 +05:30
dependabot[bot]
843f8c67b2
Build(deps): Bump json from 2.4.0 to 2.4.1 ( #11521 )
...
Bumps [json](https://github.com/flori/json ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/flori/json/releases )
- [Changelog](https://github.com/flori/json/blob/master/CHANGES.md )
- [Commits](https://github.com/flori/json/compare/v2.4.0...v2.4.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-18 14:52:04 +11:00
Penar Musaraj
2b8b252249
UX: Move reply filter button on mobile ( #11524 )
2020-12-18 14:51:13 +11:00
Sam
4558d91bbb
UX: adjust default menu width ( #11526 )
...
The notification panel gets resized and the JS uses maxWidth of 320.
This tends to fight with the CSS causing notifications to "jump" a bit when a new one lands.
2020-12-18 14:50:50 +11:00
Osama Sayegh
2d667a3bd0
FEATURE: Enable inline onebox for all domains by default ( #11523 )
2020-12-18 10:27:32 +11:00
dependabot[bot]
6380a0a250
Build(deps): Bump tzinfo from 1.2.8 to 1.2.9 ( #11522 )
...
Bumps [tzinfo](https://github.com/tzinfo/tzinfo ) from 1.2.8 to 1.2.9.
- [Release notes](https://github.com/tzinfo/tzinfo/releases )
- [Changelog](https://github.com/tzinfo/tzinfo/blob/master/CHANGES.md )
- [Commits](https://github.com/tzinfo/tzinfo/compare/v1.2.8...v1.2.9 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 16:45:53 -05:00
Arpit Jalan
29c7655221
FEATURE: allow plugins to preload custom data on search ( #11518 )
...
This commit allows discourse-assign plugin to show assigned users on
search result topic list.
2020-12-17 21:59:10 +05:30
Joe
4b1d98e878
DEV: Adds raw plugin outlets to topic list headers ( #11519 )
2020-12-17 23:08:38 +08:00
Osama Sayegh
6eee731bf9
FEATURE: Include post number in inline Onebox titles ( #11515 )
2020-12-17 11:19:13 +11:00
Robin Ward
8c9675c913
DEV: Upgrade oj gem ( #11516 )
2020-12-17 11:18:45 +11:00
David Taylor
c54217f33d
FIX: Clear in-process theme cache after clearing DB cache ( #11517 )
...
If we clear the in-process cache first, it might get re-filled from the
DB before we clear the DB cache. This would be more likely on high-traffic
sites.
2020-12-17 11:02:41 +11:00
Penar Musaraj
9870a0b6a1
FIX: missing default notification level on group creation ( #11512 )
2020-12-16 15:52:34 -05:00
Bmorrical
e7b837e7e1
Have doubled the size of the Watched Words Per Action Limit
2020-12-16 13:37:10 -05:00
Roman Rizzi
4d1bc3a491
FIX: Scroll to the last position when navigating back to the tag topic list. ( #11496 )
...
Scrolling was not working as expected after clicking the browser back button and navigating back to the tag topic list. We need to wrap the scroll inside a debounce function to ensure that the "window.pageYOffset" property is populated before our function runs.
2020-12-16 15:23:12 -03:00
Penar Musaraj
230fe0427e
DEV: More events for filtered replies ( #11511 )
2020-12-16 12:11:01 -05:00
Penar Musaraj
d1058f4e4c
UX: Blend header colors ( #11422 )
2020-12-16 09:38:51 -05:00
Arpit Jalan
1e7d6ebb0f
DEV: no need to iterate through each tag for rendering ( #11508 )
...
This commit allows discourse-assign plugin to show assigned user next to
tags.
2020-12-16 18:40:58 +05:30
dependabot[bot]
dda98a1f7d
Build(deps): Bump rails_failover from 0.6.4 to 0.6.5 ( #11506 )
...
Bumps rails_failover from 0.6.4 to 0.6.5.
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-16 11:05:35 +00:00
David Taylor
1d024f77a6
FEATURE: Allow plugins to register demon processes ( #11493 )
...
This allows plugins to call `register_demon_process` with a Class inheriting from Demon::Base. The unicorn master process will take care of spawning, monitoring and restarting the process. This API should be used with extreme caution, but it is significantly cleaner than spawning processes/threads in an `after_initialize` block.
This commit also cleans up the demon spawning logging so that it uses the same format as unicorn worker logging. It also switches to the block form of `fork` to ensure that Demons exit after running, rather than returning execution to where the fork took place.
2020-12-16 09:43:39 +00:00
Alan Guo Xiang Tan
38b6b098bc
FIX: Bypass AnonymousCache
for /srv/status
route. ( #11491 )
...
`/srv/status` routes should not be cached at all. Also, we want to
decouple the route from Redis which `AnonymouseCache` relies on. The
`/srv/status` should continue to return a success response even if Redis
is down.
2020-12-16 16:47:46 +11:00
Penar Musaraj
89bf64c0bf
DEV: Trigger events when filtering replies ( #11498 )
2020-12-16 16:46:40 +11:00
dependabot[bot]
c1ba3d786c
DEV: Bump chunky_png from 1.3.14 to 1.3.15 ( #11499 )
...
Bumps [chunky_png](https://github.com/wvanbergen/chunky_png ) from 1.3.14 to 1.3.15.
- [Release notes](https://github.com/wvanbergen/chunky_png/releases )
- [Changelog](https://github.com/wvanbergen/chunky_png/blob/master/CHANGELOG.rdoc )
- [Commits](https://github.com/wvanbergen/chunky_png/compare/v1.3.14...v1.3.15 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-16 16:44:50 +11:00
Kris
d870c80516
UX: Don't wrap menu text under icon ( #11502 )
2020-12-16 16:43:47 +11:00
Kris
9a66f24703
UX: Add title attribute to watched word input ( #11505 )
2020-12-16 16:43:01 +11:00
Kris
f450ab6b5d
UX: Make theme install modal more responsive ( #11503 )
...
* UX: Make theme install modal more responsive
* chrome fix
2020-12-16 16:41:36 +11:00
Kris
407591719c
UX: When input placeholders are too long, truncate with ellipsis ( #11504 )
2020-12-16 16:40:30 +11:00
dependabot[bot]
6ae60256ef
DEV: Bump json from 2.3.1 to 2.4.0 ( #11500 )
...
Bumps [json](https://github.com/flori/json ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/flori/json/releases )
- [Changelog](https://github.com/flori/json/blob/master/CHANGES.md )
- [Commits](https://github.com/flori/json/compare/v2.3.1...v2.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-16 16:40:03 +11:00
Krzysztof Kotlarek
6dd3f986b2
FIX: no email when the category is muted and mailing list is on ( #11490 )
...
When `mute_all_categories_by_default` setting is enabled we should not send mailing list until category, tag or topic is explicitly watched.
2020-12-16 09:30:21 +11:00
Kris
7588910ee6
UX: remove timeline from print view, fix header in crawler view ( #11489 )
2020-12-15 16:12:46 -05:00
Robin Ward
745a5d84d2
FEATURE: Allow IP anonymization via admin user controller API ( #11497 )
...
* FEATURE: Allow IP anonymization via admin user controller API
Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2020-12-15 15:48:16 -05:00
Penar Musaraj
8922a878f3
DEV: Add site header organism to styleguide ( #11495 )
2020-12-15 12:48:47 -05:00