Penar Musaraj
36bad0c31f
FIX: Preload metadata for audio/video when secure media enabled
...
Fixes an issue with missing video previews. Should have no side effects now that presigned URLs expire after 5 minutes.
2020-07-15 18:36:51 -04:00
Penar Musaraj
9e160f58ab
FIX: Trick Safari into loading video previews ( #10244 )
2020-07-15 18:14:14 -04:00
Vinoth Kannan
4f4d8d683f
FIX: add noindex header to user summary page.
2020-07-16 02:32:55 +05:30
Robin Ward
24b3996f45
FIX: Don't overwrite maxlength
computed property
...
We can use a `text-field` instead.
2020-07-15 16:05:37 -04:00
Robin Ward
6fac4a36b4
FIX: loaded
is a CP and can't be overwritten
2020-07-15 15:53:59 -04:00
Robin Ward
04881b10db
FIX: Error with currentCategory
2020-07-15 13:34:09 -04:00
Robin Ward
72c5a389eb
FIX: filterPlaceholder is a computed property
...
These cannot be overridden.
2020-07-15 13:32:27 -04:00
Robin Ward
16766a5d62
FIX: topic.details
is not a plain JS Object
2020-07-15 13:10:05 -04:00
Robin Ward
a37a19b55c
REFACTOR: Remove less effective method of injecting siteSettings
2020-07-15 11:48:55 -04:00
Robin Ward
ca13160435
REFACTOR: Remove Discourse.SiteSettings
from user/admin-user
2020-07-15 11:48:55 -04:00
Mark VanLandingham
a1507b2316
REFACTOR: Invite modal panels init, actions, and styling ( #10242 )
...
* Import @action rather than using actions: {}
* Set default values in functions outside of init, so the functions can be modified by modifyClass (plugin api).
* Move padding from .choices div to the input in group selector.
2020-07-15 09:18:31 -05:00
David Taylor
7d300006a1
Revert "PERF: Move highlightjs to a background worker, and add result cache ( #10191 )"
...
This caused a CORS error when used with S3 asset storage
This reverts commit d09f283e911c0847ca23372aceefc344526690d2.
2020-07-15 13:52:35 +01:00
David Taylor
c802c7367a
FIX: Allow highlightjs-worker to be compiled successfully
2020-07-15 13:17:52 +01:00
David Taylor
d09f283e91
PERF: Move highlightjs to a background worker, and add result cache ( #10191 )
...
Syntax highlighting is a CPU-intensive process which we run a lot while rendering posts and while using the composer preview. Moving it to a background worker releases the main thread to the browser, which makes the UX much smoother.
2020-07-15 12:48:07 +01:00
Vinoth Kannan
0058a15266
FIX: prevent redirect when image scale btn is inside a link.
...
Currently in composer preview, if the image scale buttons are inside a `<a>` link then it redirects to the `href` location after the image scaling task.
2020-07-15 09:34:54 +05:30
Sam Saffron
97f581e1df
FIX: add protection just in case topic is not set
...
Under some conditions we may be loading the composer with no topic set.
This code could fail leading to a broken composer.
2020-07-15 11:38:46 +10:00
Jarek Radosz
fd083394cb
MODAL: Align the close button with other header elements ( #10222 )
2020-07-14 21:29:36 -04:00
Martin Brennan
af7ce5d6eb
Revert "DEV: Add debug hint in discourse-markdown-it"
...
This reverts commit 5a4855b99289664e716efcac388769a11fd2a159.
2020-07-15 11:23:28 +10:00
Martin Brennan
5a4855b992
DEV: Add debug hint in discourse-markdown-it
...
This console.debug message ONLY shows if isDevelopment() is
true for the environment
2020-07-15 11:18:41 +10:00
Mark VanLandingham
332cb5cdb1
DEV: 2 plugin outlets for group views ( #10233 )
2020-07-14 15:32:07 -05:00
Rafael dos Santos Silva
72534223f3
FEATURE: Allow video tag attributes for video gifs
2020-07-14 13:46:45 -03:00
jbrw
06073fe8c6
FEATURE: Allow group moderators to close/archive topics
...
* FEATURE: Allow group moderators to close/archive topics
2020-07-14 12:36:19 -04:00
David Taylor
cc6d722de1
FIX: Correct user profile URLs in /about
crawler view
2020-07-14 16:09:27 +01:00
Faizaan Gagan
9917b9cb21
added 'addFeaturedLinkMetaDecorator' method to the plugin api ( #10232 )
...
* added 'addFeaturedLinkMetaDecorator' method to the plugin api
* fixed formatting
* Fixed quotes around import
2020-07-14 10:40:40 -04:00
David Taylor
3d65678a13
DEV: Add timestamp columns to optimized_images table ( #10199 )
...
This allows us to filter by created/updated date when comparing to an S3 inventory.
2020-07-14 11:50:33 +01:00
Guo Xiang Tan
5c230266d3
FIX: Inject extra lexemes for host lexeme.
...
```
discourse_development=# SELECT alias, lexemes FROM TS_DEBUG('www.discourse.org');
alias | lexemes
-------+---------------------
host | {www.discourse.org}
discourse_development=# SELECT TO_TSVECTOR('www.discourse.org');
to_tsvector
-----------------------
'www.discourse.org':1
```
Given the above lexeme, we will inject additional lexeme by splitting
the host on `.`. The actual tsvector stored will look something like
```
tsvector
---------------------------------------
'discourse':1 'discourse.org':1 'org':1 'www':1 'www.discourse.org':1
```
2020-07-14 15:32:40 +08:00
Martin Brennan
bcc80e0ea8
FEATURE: Add search to user bookmark list ( #10230 )
...
User bookmarks can now be searched by name or post raw content. The q querystring param is hooked up from the Ember router as well.
2020-07-14 14:43:41 +10:00
Martin Brennan
f4f3e8c401
FIX: Various improvements to bookmark modal UI ( #10225 )
...
* Do not autofocus name input on mobile
* Improve code for formatted reminder type times to not be computed, so the modal times update correctly
* Change wording of "Next Monday" to "Monday" for all days except when today is Monday
2020-07-14 14:02:13 +10:00
Guo Xiang Tan
ce39733b1a
FIX: Incorrect search blurb when advanced search filters are used take2
...
Also remove include_blurbs attribute which isn't used.
2020-07-14 11:50:40 +08:00
Kris
277d09516e
topic-admin-menu shouldn't be fixed width on mobile
2020-07-13 18:50:57 -04:00
Robin Ward
a73da42691
FIX: Don't award new user of the month in the wrong month
...
see: https://meta.discourse.org/t/new-user-of-the-month-badge-awarded-before-registraton-date/157347/2?u=eviltrout
2020-07-13 15:05:30 -04:00
Penar Musaraj
c02e358146
FIX: Remove social sharing icons from private contexts ( #10213 )
2020-07-13 14:35:39 -04:00
Rafael dos Santos Silva
e0f97c707e
PERF: Cache user summary data
2020-07-13 15:26:56 -03:00
Rafael dos Santos Silva
a4d5d1f51d
PERF: Add user_id condition so we can use another index in the query
2020-07-13 15:26:56 -03:00
Blake Erickson
a900c99993
DEV: Add external_id to notification payload
...
If sso is enabled the notification payload will now include the
external_id for the user.
This was requested on meta: https://meta.discourse.org/t/-/129052/10
2020-07-13 12:07:39 -06:00
Dan Ungureanu
cf02c518b9
DEV: Merge category and tag hashtags code paths ( #10216 )
...
Category and tag hashtags used to be handled differently even though
most of the code was very similar. This design was the root cause of
multiple issues related to hashtags.
This commit reduces the number of requests (just one and debounced
better), removes the use of CSS classes which marked resolved hashtags,
simplifies a lot of the code as there is a single source of truth and
previous race condition fixes are now useless.
It also includes a very minor security fix which let unauthorized users
to guess hidden tags.
2020-07-13 19:13:17 +03:00
Bianca Nenciu
6c6c56613d
FIX: Check if last poster exists before using it
...
There was a problem when admins viewed topics where the last poster was
deleted.
2020-07-13 18:55:14 +03:00
Jarek Radosz
a96ff82e53
FIX: Set the lang/xml:lang html attrs in emails ( #10218 )
...
In some rare cases emails are incorrectly sent out with lang placeholders in body (`xml:lang="%{html_lang}"`)
2020-07-13 16:39:40 +02:00
Arpit Jalan
7532f24668
UX: better error message if moderator is not allowed to invite to group
...
UX: do not show invite to group option if mod is not owner of any group
2020-07-13 18:09:36 +05:30
Arpit Jalan
ba57dc57cc
DEV: use group_ids instead of group_names in invite params
2020-07-13 17:37:04 +05:30
Jarek Radosz
eb73048b0f
DEV: Allow displaying both title and panels in modals ( #10220 )
2020-07-13 12:43:06 +02:00
Bianca Nenciu
4492718864
FIX: Skip whisper posts when updating topic like count ( #10157 )
2020-07-13 16:30:00 +10:00
Krzysztof Kotlarek
180494185c
FIX: last visit bar regression ( #10224 )
...
Last visit regression bar is missing because of that change https://github.com/discourse/discourse/commit/9b7000dbf10
Order property was changed from "default" to null and it was picked by guard condition
2020-07-13 10:42:05 +10:00
Jarek Radosz
6c91f795d0
DEV: widget-dropdown CSS tweaks ( #10219 )
...
* DEV: Remove the margin from widget-dropdown
Generic components should not have a margin. Those should be styled in the place where they are used.
* DEV: Remove margin from the dropdown body
It triggered a warning in popper and was effectively a no-op as popper positions dropdowns on its own using `position: fixed` and `top/right/bottom/left` properties.
2020-07-13 01:27:31 +02:00
Jarek Radosz
942cc9b57a
DEV: Add rawTitle property support to modal-tab ( #10221 )
...
```js
const panels = [
{ id: "test1", rawTitle: "Test 1" },
{ id: "test2", rawTitle: "Test 2" }
];
showModal("a-modal", { panels }));
```
2020-07-13 01:26:45 +02:00
David Taylor
fbf29443bd
FIX: Allow signup when auth provider supplies no email
2020-07-10 17:56:33 +01:00
Bianca Nenciu
275b748016
FIX: Replace links to removed uploads from reviewables with a placeholder ( #10180 )
2020-07-10 17:57:06 +03:00
David Taylor
4b0d86d8d3
FIX: Do not display enabled inputs when username/name are locked
2020-07-10 10:49:32 +01:00
Dan Ungureanu
c72bc27888
FEATURE: Implement support for IMAP and SMTP email protocols. ( #8301 )
...
Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2020-07-10 12:05:55 +03:00
Dan Ungureanu
e88b17c044
FIX: Sync client and server side behavior for category hashtag lookup
...
Category.query_from_hashtag_slug is the only source of truth.
2020-07-10 10:45:39 +03:00