Commit Graph

27622 Commits

Author SHA1 Message Date
9c7d609575 UX: Restore width of composer user selector.
* This fixes the build as well as a short width
  resulted in the user selector collapsing into
  the compressed display.
2018-02-15 11:49:10 +08:00
Sam
5faffeeb82 demo script for profiling middleware stack 2018-02-15 14:36:40 +11:00
Sam
94b2c70c0d PERF: remove oga gem
oga gem is automatically required by the aws gem
the oga gem retains about 1mb of memory, aws now uses nokogiri

This also removes the html normalize from the pretty text specs that was
a fair bit buggy as the polls test shows.
2018-02-15 14:36:40 +11:00
28365f8ae5 PERF: Have nginx cache and serve the service worker file. 2018-02-15 10:50:39 +08:00
Sam
d8b4627fc8 we have to define this for tests to pass 2018-02-15 13:30:34 +11:00
Sam
b5b866aab3 oops 2018-02-15 13:13:31 +11:00
Sam
c89b42c488 PERF: only require the rss library if used
Before:

Total allocated: 257909321 bytes (2514134 objects)
Total retained:  39681579 bytes (343387 objects)

allocated memory by gem
-----------------------------------
  42875979  rss

retained memory by gem
-----------------------------------
   2080188  rss

retained objects by gem
-----------------------------------
     13052  rss

After:

Total allocated: 210562047 bytes (2252030 objects)
Total retained:  37433816 bytes (328635 objects)

----

So, 2 less megabytes on boot and 13000 objects stuck in ruby heaps forever.
2018-02-15 13:11:33 +11:00
a03e7cee63 FIX: Group posts had the wrong paths in subfolders 2018-02-14 20:33:31 -05:00
96e5a7da46 Prefer success_Json over custom success JSON payload. 2018-02-15 07:47:35 +08:00
218c8e8623 Merge pull request #5595 from discourse/new-gfycat-onebox
New gfycat onebox
2018-02-14 19:03:28 -02:00
b4aa0b096e FIX: Couldn't like staff when allow_flagging_staff was set 2018-02-14 15:46:04 -05:00
a3e5a31674 FIX: Allow 404 pages to use the current theme 2018-02-14 15:29:01 -05:00
c3606fdef6 Update onebox 2018-02-14 17:43:13 -02:00
dffdff91a6 Fix avatar flair alignment on mobile user profiles 2018-02-14 13:39:30 -05:00
e85458e1b9 Removing old bootstrap columns 2018-02-14 12:27:34 -05:00
3ad0266dd8 FIX: better handling of category badge when displaying sub and parent cat 2018-02-14 16:42:20 +01:00
f07b1a5c05 FIX: activate user even if email token is already confirmed 2018-02-14 20:44:48 +05:30
8ae2c4555a FIX: do not translate the same string two times when rendering icon label 2018-02-14 12:41:24 +01:00
23ef5f10e9 FIX: check can_create_tag on create and not on select 2018-02-14 12:20:07 +01:00
e3774c7bed FEATURE: displays category badge in {{category-chooser}} header 2018-02-14 11:49:23 +01:00
25dd8ff62a FIX: broken composer-actions spec 2018-02-14 11:32:20 +01:00
e7761db60f FIX: improves contrast on period-chooser when using dark-theme 2018-02-14 11:16:57 +01:00
5d00a97ae9 FIX: regression preventing uncategorized badge to be shown 2018-02-14 11:03:33 +01:00
b0eed424f7 FIX: continue discussion when creating new topic from composer-actions 2018-02-14 10:32:46 +01:00
480c94d298 minor visual improvements to mini-tag-chooser 2018-02-14 10:26:43 +01:00
Sam
38f4acd55a FIX: rate limiter text is confusing, should not say daily
Also, adds easily parseable JSON so users can figure out
how long to wait when the API is limited. ("extras" "wait_seconds")
2018-02-14 15:29:50 +11:00
0b13b82e94 Update nokogiri to latest version 2018-02-13 19:36:19 -05:00
Sam
f028ffaf29 SECURITY: correct local onebox category checks
Also removes ugly "source_topic_id" from cooked posts

Patch was authored by @zogstrip

Signed-off-by: Sam <sam.saffron@gmail.com>
2018-02-14 10:40:46 +11:00
548db91c76 FIX: displays an error when reaching tags limit 2018-02-14 00:30:09 +01:00
5a56746610 FIX: Embedded topic was not found when URL contained query string 2018-02-14 00:28:30 +01:00
22f0b0096d FEATURE: show avatar flair on user profile page 2018-02-13 17:13:38 -05:00
556ab8480e FIX: ESlint 2018-02-13 16:06:40 -05:00
713993d150 UX: Link post ids in staff action logs to the post 2018-02-13 15:59:10 -05:00
7348513848 FIX: Include post in staff action logs when silencing a user 2018-02-13 15:59:10 -05:00
ed114177e7 Mini tag chooser tweaks 2018-02-13 19:41:03 +01:00
d525a644d2 fix linting 2018-02-13 18:12:30 +01:00
20123271d2 FIX: override backspaceFromFilter only if defined 2018-02-13 17:48:00 +01:00
20e44b3c14 Revert "FIX: 404 page when clicking a badge notification from before changing username" 2018-02-13 11:39:33 -05:00
7d501058d7 FIX: don't grant new user of the month badge to suspended users or based on deleted topics/posts 2018-02-13 17:32:38 +01:00
6bfc25d895 FEATURE: new {{mini-tag-chooser}} replaces {{tag-chooser}} in composer 2018-02-13 17:23:12 +01:00
0a95d2a21f FIX: Upload fails silently if it is bigger than max allowed size 2018-02-13 14:39:25 +05:30
03b3e57a44 FEATURE: login by a link from email
Co-authored-by: tgxworld <tgx@discourse.org>
2018-02-13 16:14:39 +08:00
f9280617d0 Remove redundant comment. 2018-02-13 15:58:13 +08:00
1c27d93dcf anonymous shadow users are approved on creation if must_approve_users is enabled (#5569) 2018-02-13 01:58:38 -05:00
e924de71e7 Spec test to make sure we do not skip trashed post 2018-02-13 12:23:47 +05:30
cc3cf6588b FEATURE: Notification API Endpoints for Admins
* create/update/delete notification api with external url
* remove external url feature
* Fix Travis CI build error (add new line)
* Fix Travis CI build error
2018-02-13 01:38:26 -05:00
Sam
14d0450bef FEATURE: Only load service worker for Android
TBD an interface for plugin to enable service workers on desktop if they need them
2018-02-13 16:23:36 +11:00
Sam
074d590abd FIX: stop counting offline page as a page view 2018-02-13 16:19:43 +11:00
Sam
b34b1b6fe3 FIX: invite to message was not allowing groups
Previously we were incorrectly checking mentionable instead of messageable

Also fix edge case where multiple groups sharing a name mean that exact match override is not working

Also cleans up params sent to user selector
2018-02-13 13:28:46 +11:00
5f8f691e2b FIX: Border issue with group inputs on high resolution displays 2018-02-12 21:09:40 -05:00