427d54b2b0
DEV: Upgrading Discourse to Zeitwerk ( #8098 )
...
Zeitwerk simplifies working with dependencies in dev and makes it easier reloading class chains.
We no longer need to use Rails "require_dependency" anywhere and instead can just use standard
Ruby patterns to require files.
This is a far reaching change and we expect some followups here.
2019-10-02 14:01:53 +10:00
0d22beb81d
FIX: Improve Onebox detection ( #8019 )
...
Follow-up to 7c83d2eeb261ac676a8320e6a704752c56fd242e.
2019-09-10 13:59:48 +03:00
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
a7bc1ecbae
FEATURE: Add support for Unicode usernames and group names
...
Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com >
2019-04-23 13:00:27 +02:00
529e4018f0
DEV: Avoid using send
and make the method public instead.
2018-09-13 16:34:32 +08:00
de92913bf4
FIX: store the topic links using the cooked upload url
2018-08-14 12:23:32 +02:00
fd54c92a52
FEATURE: New site setting, whitelisted_link_domains
...
If provided, users who normally couldn't post links (say, due to a
low trust level), can post links to those specific hosts.
2018-06-13 16:11:22 -04:00
ad5082d969
Make rubocop happy again.
2018-06-07 13:28:18 +08:00
31d0998506
FIX: Don't allow links with no href
2018-03-28 12:32:16 -04:00
c74d10cf34
FIX: Consider live links in <code>
as links when counting
2018-03-06 11:46:12 -05:00
5c40ae9e63
FIX: Links in quotes should be counted for rate limits
2018-02-20 20:42:01 -05:00
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
5466389f4e
FIX: Consider oneboxes links wrt to min_trust_level_to_post_links
2018-02-08 18:27:40 -05:00
9207dee69a
FEATURE: escape HTML when cooking plaintext emails
2017-11-15 20:22:11 +01:00
4205c1ad2b
FIX: postprocessing ignored cook method
2017-10-20 10:26:45 +02:00
90dd1609eb
FIX: memoization in PostAnalyzer.raw_mentions ( #5172 )
...
Due to a missing 's' when assigning the computed value to @raw_mentions, the raw_mentions function in PostAnalyzer would never retrieve a memoized value.
2017-09-11 20:01:24 +02:00
0531ef2e20
Fix calling exists?
on Arrays.
2017-08-24 09:56:07 +09:00
91d3929f52
Merge pull request #5078 from lelelelemon/master
...
change count>0 to exists
2017-08-24 09:24:42 +09:00
8124f26a6e
change count>0 to exists
2017-08-23 22:54:51 +00:00
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
45a257815a
Convert front end paths from /users/
to /u/
2017-03-30 10:23:24 -04:00
06469ef0ce
FIX: don't extract links from .elided parts
2016-12-05 15:19:15 +01:00
0396b14b70
FEATURE: New "First Onebox" badge
2016-04-12 15:31:14 -04:00
12b5821d79
add missing class
2016-02-24 19:09:18 +11:00
833af461ab
FIX: stop using regex to detect mentions
2016-02-24 17:47:55 +11:00
96aa5b865f
FIX: mentions regex server-side (ie. don't count email addresses)
2016-01-12 09:53:09 +01:00
f654528aa4
FIX: user/group/category mention dialects with less strict matchers
2016-01-06 18:47:21 +01:00
57870b970d
correct hack and move to oneboxer
2015-09-25 20:14:53 +10:00
80f258e51c
FIX: don't count mentions in oneboxes
2015-06-24 11:44:58 +02:00
948617cb0b
FIX: ruby 2.2 using new parsing library which is way too lax
2015-03-18 16:25:24 +11:00
6301a43d57
Not initializing variable for looping if unused in loop
2014-08-15 03:24:55 +05:30
9c48f8f154
FIX: Don't surround <aside>
with <p>
as that is malformed HTML.
2014-06-30 18:11:22 -04:00
00a46253ae
BUGFIX: Don't resolve oneboxes when cooking
...
Defer to post save job
2014-03-18 15:22:53 +11:00
f25bcc5067
couple of bugfixes identified while importing from VB
2014-03-07 10:44:04 +01:00
e453bfa073
Work in progress: Swap out onebox code for onebox gem
2014-01-29 14:14:07 -05:00
82dd9009e3
4% speedup on our test suite
2013-10-17 18:47:08 +02:00
15cad17810
FIX: Nokogiri bugs in certain environments
2013-10-16 12:19:59 -04:00
7f69a58439
Replace Markdown parser.
2013-08-21 10:10:57 -04:00
f4d833da27
fix onebox exception, if oneboxes fail on save we log a warning to the log
2013-08-20 11:38:10 +10:00
ed9417fa3b
enable thumbnailing on S3
...
- added url to optimized image model
- refactored s3_store & local_store
2013-07-31 23:26:34 +02:00
553a671fdb
fix mentions in code blocks
2013-07-30 18:01:42 -04:00
ebd5fa76c5
Reuse post-analyzer and cooked-document when requesting multiple post stats
2013-07-22 22:24:47 +02:00
2986798ba7
add newuser-max-attachments setting
2013-07-22 02:39:17 +02:00
96065a1499
Prevent backtrace in PostAnalyser
2013-07-15 11:15:04 +01:00
5e5ef9cafd
Remove unused var.
2013-06-20 20:58:05 +05:30
ef76e18215
Optionally invalidate onebox in PostAnalyzer#cook
2013-06-19 00:19:42 -07:00
cab3502c15
Replace PostAnalyser module with a class
...
Encapsulate Post#cooked_document as well
Include specs for PostAnalyzer class
2013-06-01 14:59:27 +02:00