Penar Musaraj
1100b3d185
UX: fix spacing of composer preview on mobile
...
Followup to 723d7e3a
2020-07-22 14:36:05 -04:00
Robin Ward
c1bcb78441
REFACTOR: Allow helpers to access site settings
...
Since `Discourse.SiteSettings` is removed, helpers can now include and
call `helperContext().siteSettings` to get access to the settings
without using a global variable.
2020-07-22 14:14:38 -04:00
Robin Ward
939fae3500
REFACTOR: Remove Discourse.SiteSettimgs
from @setting decorator
2020-07-22 13:27:57 -04:00
Robin Ward
4ecb4439b9
REFACTOR: Remove Discourse.SiteSettings
from lightbox.js
2020-07-22 13:27:57 -04:00
Robin Ward
94419d0176
REFACTOR: Remove Discourse.SiteSettings
from static route builder
2020-07-22 13:27:57 -04:00
Robin Ward
0bf28e418f
REFACTOR: Remove Discourse.SiteSettings
from lib:search
2020-07-22 13:27:57 -04:00
Robin Ward
aa2eea7729
REFACTOR: Remove Discourse.SiteSettings
from click tracking
2020-07-22 13:27:57 -04:00
Robin Ward
bc7dac852f
REFACTOR: Remove Discourse.SiteSettings
from Category model
2020-07-22 13:27:57 -04:00
Robin Ward
217b970e16
REFACTOR: Remove Discourse.SiteSettings
from desktop notifications
2020-07-22 13:27:57 -04:00
Robin Ward
37f2611d9c
REFACTOR: Remove Discourse.SiteSettings
from topic bulk actions
2020-07-22 13:27:57 -04:00
David Taylor
5b7c016ebc
FIX: Restore navigation-bar on tag topic list
...
This was accidentally removed in ac0d5b1d
2020-07-22 18:26:37 +01:00
David Taylor
c09b5807f3
FIX: Include resolved locale in anonymous cache key ( #10289 )
...
This only applies when set_locale_from_accept_language_header is enabled
2020-07-22 18:00:07 +01:00
David Taylor
bcb0e62363
FIX: Make set_locale an around_action to avoid leaking between requests ( #10282 )
2020-07-22 17:30:26 +01:00
tshenry
723d7e3a61
FEATURE: Submit post from mobile composer preview ( #10286 )
2020-07-22 09:17:51 -07:00
Bianca Nenciu
22fdd5dfda
FIX: Improve email styling of code blocks ( #10248 )
...
Long numbered code lines were not rendered correctly in some email
clients.
2020-07-22 18:26:14 +03:00
Bianca Nenciu
1fc58b5a4e
FEATURE: Add query params to staff action logs ( #10279 )
2020-07-22 18:25:58 +03:00
Penar Musaraj
09eb087f84
FIX: Remove iOS trick to prevent scrolling when focusing on input
...
No longer needed, removing it also fixes blinking when tapping the composer textarea
2020-07-22 11:18:01 -04:00
Roman Rizzi
9fc7bd5797
FIX: Reviews that are auto-hidden by a trusted spam flagger should always have enough weight. ( #10284 )
2020-07-22 11:42:15 -03:00
Jarek Radosz
300e30dcbf
FIX: Remove the border from YT thumbnail placeholder ( #10288 )
2020-07-22 16:38:35 +02:00
Penar Musaraj
45ae24a1e9
FIX: Apply video preview trick for Safari to stream only
2020-07-22 10:31:08 -04:00
Jordan Vidrine
5f19fd64ea
Update wizard.scss
2020-07-22 09:24:04 -05:00
Jordan Vidrine
b0b42a3209
FIX: add system fonts to wizard
2020-07-22 09:07:57 -05:00
Vinoth Kannan
0884d570b1
FEATURE: add support for top
filter in tag page. ( #10281 )
...
Currently, tag pages only have the `latest` filter.
2020-07-22 19:26:36 +05:30
Arpit Jalan
db4e310376
DEV: annotate models
2020-07-22 16:02:31 +05:30
Penar Musaraj
6d39452317
UX: Shrink composer consistently when pressing Done in iOS
2020-07-21 23:54:43 -04:00
Martin Brennan
93a8e34f47
FIX: Allow user to recover/delete post if they can review the topic ( #10273 )
...
To reproduce the initial issue here:
1. A user makes a post, which discourse-akismet marks as spam (I cheated and called `DiscourseAkismet::PostsBouncer.new.send(:mark_as_spam, post)` for this)
2. The post lands in the review queue
3. The category the topic is in has a `reviewable_by_group_id`
4. A user in that group goes and looks at the Review queue, decides the post is not spam, and clicks Not Spam
5. Weird stuff happens because the `PostDestroyer#recover` method didn't handle this (the user who clicked Not Spam was not the owner of the post and was not a staff member, so the post didn't get un-destroyed and post counts didn't get updated)
Now users who belong to a group who can review a category now have the ability to recover/delete posts fully.
2020-07-22 11:57:16 +10:00
Guo Xiang Tan
16961dee76
FIX: Typo in NotificationsController#index
not caught by tests.
2020-07-22 09:22:26 +08:00
Martin Brennan
8dc3543134
FIX: Ignore removed delete_when_reminder_sent bookmarks column
2020-07-22 10:17:21 +10:00
Martin Brennan
62f2e1f971
FIX: Stop double prepending of window.location.origin on media URLs ( #10275 )
...
This fixes an issue where sometimes when composing a post and uploading a video/audio file, _loadCachedShortUrls/the uploads controller would return a full URL with origin, instead of just the URL with the host e.g. http://localhost:3000/some/video.mp4 instead of just //localhost:3000/some/video.mp4. We were prepending window.location.origin onto the URL no matter what, and since http://localhost:3000/some/video.mp4 does not match the host URL regex, we were ending up with something like http://localhost:3000http://localhost:3000/some/video.mp4 which broke composer previews. This was only noticed with a video upload in a secure upload environment.
2020-07-22 09:23:55 +10:00
Krzysztof Kotlarek
e48e64456d
FIX: test for fillGapBefore ( #10272 )
...
Missing test for that PR https://github.com/discourse/discourse/pull/10264
2020-07-22 07:33:55 +10:00
jbrw
0ed784b4fc
FEATURE: Create logs for Group Moderator changes ( #10271 )
2020-07-21 14:29:02 -04:00
Robin Ward
549c552402
FIX: Remove username_lower
from admin serializer
...
The property is already computed on the front end and this ends up
overwriting it.
2020-07-21 14:00:43 -04:00
Robin Ward
fa74f28a51
REFACTOR: Remove Discourse.SiteSettings
from initializers
2020-07-21 13:51:28 -04:00
Robin Ward
f5adf6d183
REFACTOR: Remove Discourse.SiteSettings
from reply adapter
2020-07-21 13:51:28 -04:00
Robin Ward
9aab81f304
REFACTOR: Remove Discourse.SiteSettings
from components
2020-07-21 13:51:28 -04:00
Robin Ward
f83c383177
REFACTOR: Remove Discourse.SiteSettings
from some controllers
2020-07-21 13:51:28 -04:00
Robin Ward
17bccbb52f
REFACTOR: Remove Discourse.SiteSettings
from search-result widget
2020-07-21 13:51:28 -04:00
Robin Ward
ac0d5b1d3f
REFACTOR: Remove Discourse.SiteSettings
from nav-item
2020-07-21 13:51:28 -04:00
Robin Ward
9dd6367d81
REFACTOR: Remove Discourse.SiteSettings
from PostCooked
widget
2020-07-21 13:51:28 -04:00
Robin Ward
531793e98f
REFACTOR: Remove Discourse.SiteSettings
from topic tracking state
2020-07-21 13:51:28 -04:00
Robin Ward
f6c40075e5
REFACTOR: Remove Discourse.SiteSettings
from post model
2020-07-21 13:51:28 -04:00
Robin Ward
21ea4d1238
REFACTOR: Remove Discourse.SiteSettings
from application controller
2020-07-21 13:51:28 -04:00
Robin Ward
ccb36f81c4
REFACTOR: Remove Discourse.SiteSettings
from topic model
2020-07-21 13:51:28 -04:00
David Taylor
ec4024fe6d
FIX: Keep by_users check in S3 inventory
...
Partial revert of 8515d8fa
- the by_users check is ensuring we don't raise errors for fixtures
2020-07-21 17:19:56 +01:00
Vinoth Kannan
ef37460c93
FIX: delete synonyms in topics if target tag is already added.
...
Currently, while adding a synonym tag if both target and synonym tags are already available in a topic then it's returning an error.
2020-07-21 21:02:01 +05:30
David Taylor
8515d8fae5
FIX: Improve S3 inventory logic
...
Previously we considered 'upload rows without etags' to be exempt from the check. This is bad, because older/migrated sites might not have etags on all their uploads. We should consider rows without etags to be broken, since we can't check them against the inventory.
This also removes the `by_users` scope. We need all uploads to be working, even ones created by the system user.
2020-07-21 15:55:53 +01:00
Guo Xiang Tan
74ddbc91b0
DEV: Update rails_failover to 0.5.4
...
Pulls in
- FIX: Undefined method on nil class error in forking servers.
2020-07-21 16:01:53 +08:00
Guo Xiang Tan
d38dd68d05
DEV: Fix lint.
2020-07-21 15:55:03 +08:00
Guo Xiang Tan
bb8f1ce8b1
DEV: Consolidate Unicorn error backtraces when logstash is enabled.
2020-07-21 15:35:41 +08:00
Guo Xiang Tan
23778f4bfd
DEV: Avoid logging Redis cannot connect error during failover.
...
Reduce amount of noise in our logs.
2020-07-21 14:53:46 +08:00