Commit Graph

3270 Commits

Author SHA1 Message Date
David Sevilla Martin
82562294b7 Fix failing tests 2020-02-04 22:59:04 +01:00
datitisev
51ae92f841 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-04 22:59:04 +01:00
David Sevilla Martin
6448babaa5 Remove 'or' from 'orWhereNotExists' 2020-02-04 22:59:04 +01:00
David Sevilla Martin
f7feea496d Add discussion_id foreign key to posts table 2020-02-04 22:59:04 +01:00
flarum-bot
75e624d7ca Bundled output for commit 6d2b50722a [skip ci] 2020-02-04 22:59:04 +01:00
Clark Winkelmann
5a01b63c99 Pass event to KeyboardNavigatable whenCallback (#1922)
This way the callback can know which key is pressed.
2020-02-04 22:59:04 +01:00
Daniël Klabbers
cae4a6eb45 Fix the queue:restart command (#1932)
Adding a proxy callStatic on our simple implementation of the Manager class allows passing through calls like `forever()` to the underlying cache driver instance.
2020-02-04 22:59:04 +01:00
Franz Liedke
36d6d79011 Add a docblock 2020-02-04 22:59:04 +01:00
Daniël Klabbers
22c599b283 only show queue commands if using another driver than sync 2020-02-04 22:59:04 +01:00
flarum-bot
456f5095da Bundled output for commit 1ba4a0b87e [skip ci] 2020-02-04 22:59:04 +01:00
Daniël Klabbers
0b3ce2e7d0 Fix existing Post component classes being dropped 2020-02-04 22:59:04 +01:00
flarum-bot
607eeb530d Bundled output for commit 1f2566c32c [skip ci] 2020-02-04 22:59:04 +01:00
Daniël Klabbers
5f4efe3c66 Improved naming of class for post by actor.
Made class list for post extensible by using a separate method.
2020-02-04 22:59:04 +01:00
flarum-bot
fac61b5bce Bundled output for commit 19ecd968c6 [skip ci] 2020-02-04 22:59:04 +01:00
Matthew Kilgore
ea64de5952 Removed LESS changes 2020-02-04 22:59:03 +01:00
Matthew Kilgore
ff6c407e53 Set border to left side only 2020-02-04 22:59:03 +01:00
Matthew Kilgore
c4ba13f608 Added border around post made by active user 2020-02-04 22:59:03 +01:00
flarum-bot
cef46ec357 Bundled output for commit 54c5c09693 [skip ci] 2020-02-04 22:59:03 +01:00
David Sevilla Martin
5788c7373e Cleanup some code and fix alert dismiss not working 2020-02-04 22:59:03 +01:00
Moritz Stueckler
8fdd8a1089 feat: re-add debug button/modal
Fixes #1687
2020-02-04 22:59:03 +01:00
David Sevilla Martin
dc31a0a076 Fix Modal width on <768px screens not occupying the whole page 2020-02-04 22:59:03 +01:00
flarum-bot
29eb233dd1 Bundled output for commit 937354512b [skip ci] 2020-02-04 22:59:03 +01:00
Daniël Klabbers
f6e48fa054 Update User.js
Use recommended `anonymous`, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin
2020-02-04 22:59:03 +01:00
J.C.Ködel
1b5e8f221a Fix Color Thief cross origin bug
When users have external avatar urls (for instance: in a SSO environment where the avatar is provided by another domain), color thief fails to get the avatar dominant color because the canvas would be tainted. 

Following the instructions here (https://lokeshdhakar.com/projects/color-thief/ on the "Does it work if the image is hosted on another domain?"), adding an `image.crossOrigin = 'Anonymous';` solves the issue.

Tested on my forum which before suffered from a JS error and works fine (without this fix, the canvas remain in the `body` while an script error is thrown by color thief)
2020-02-04 22:59:03 +01:00
Franz Liedke
f903487ef3 Revert search performance regression
We decided it is better to have a less intelligent search (that does not
match search terms in titles) for some people than a bad-performing
search for everyone.

We will revisit the search performance topic in the next release cycle,
possibly with larger changes around indexing.

Refs #1738, #1741, #1764.
2020-02-04 22:59:03 +01:00
Daniël Klabbers
1da4b72eac improve queue error handling 2020-02-04 22:59:03 +01:00
Daniël Klabbers
55bdad55fc added return type hint to memory cache 2020-02-04 22:59:03 +01:00
Daniël Klabbers
b603c7b336 add type hinting to settings repository 2020-02-04 22:59:03 +01:00
luceos
a530c52fb4 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-04 22:59:03 +01:00
Daniël Klabbers
f7dc716042 added ability to re-use existing error handling stack 2020-02-04 22:59:03 +01:00
David Sevilla Martin
a72f87d7ee Alias 'flarum.queue.connection' to Queue contract 2020-02-04 22:59:03 +01:00
Tariq Hussein
5dbe97630c Fixes #1877 Replace getIdsForUsername() with subquery instead. (#1878) 2020-02-04 22:59:03 +01:00
flarum-bot
23709a77a2 Bundled output for commit bbd891965f [skip ci] 2020-02-04 22:59:03 +01:00
Madalin Tache
29a2c247a1 Update window size (#1894)
This small change attempts to fix #1727, as i just got my eye on it and figured i could simply fix it while seeing it.
2020-02-04 22:59:03 +01:00
flarum-bot
a7f97c14ec Bundled output for commit 7a684660e9 [skip ci] 2020-02-04 22:59:03 +01:00
David Sevilla Martín
8fcd62955b Enable scrollbars in login button popups (#1900)
Fixes #1716
2020-02-04 22:59:02 +01:00
Daniël Klabbers
618e91805f works towards #1789 by allowing event subscribing (#1810) 2020-02-04 22:59:02 +01:00
Franz Liedke
431ab9f3e8 Amend the existing rel attribute of links
...instead of overwriting. This will play more nicely with extensions.

Refs #859.
2020-02-04 22:59:02 +01:00
Franz Liedke
4f06133d75 Stop opening external links in new tabs
We accept that this may be desired by forum owners and will offer an
extension to enable this feature. By default, we will not make any
assumptions and simply adopt the web's and browsers' default behavior.

Fixes #859.
2020-02-04 22:59:02 +01:00
Franz Liedke
bf79f2474c Cleanup code from #1876
- Extract a method for email address generation
- Consistent types
- No docblocks for types where superfluous
- Tweak console output
- Don't inherit from integration test's base class in unit test
2020-02-04 22:59:02 +01:00
Stefan Totev
1b74e43cb9 Normalize Base URL during installation
- Fix base url when is appended with a script filename
- Add default base url http://flarum.local when CLI wizard used
- Remove some code duplication
- Add minor improvement to the UX when CLI wizard used
- Add tests
- Extract base url normalisation into its own value object
2020-02-04 22:59:02 +01:00
Matteo Contrini
3643e2010b Change rel for external links to nofollow ugc (#1884) 2020-02-04 22:59:02 +01:00
Daniël Klabbers
58299edc20 added author Daniel Klabbers 2020-02-04 22:59:02 +01:00
David Sevilla Martín
18774e0b10 Prepare beta.10 release (#1885)
* Update Application version string to beta 10
* Add beta.10 changelog
2020-02-04 22:59:02 +01:00
Franz Liedke
86d890d043 Restore beta.9 behavior of assertCan()
In flarum/core#1854, I changed the implementation of `assertCan()` to be
more aware of the user's log-in status. I came across this when unifying
our API's response status code when actors are not authenticated or not
authorized to do something.

@luceos rightfully had to tweak this again in ea84fc4, because the
behavior changed for one of the few API endpoints that checked for a
permission that even guests can have.

It turns out having this complex behavior in `assertCan()` is quite
misleading, because the name suggests a simple permission check and
nothing more.

Where we actually want to differ between HTTP 401 and 403, we can do
this using two method calls, and enforce it with our tests.

If this turns out to be problematic or extremely common, we can revisit
this and introduce a method with a different, better name in the future.

This commit restores the method's behavior in the last release, so we
also avoid another breaking change for extensions.
2020-02-04 22:59:02 +01:00
Franz Liedke
ab0ba707e7 Add a test for viewUserList guest permission
This test would have failed without commit ea84fc4. Next, I will revert
that commit and most of my PR #1854, so we need this test to ensure the
API continues to behave as desired.
2020-02-04 22:59:02 +01:00
Franz Liedke
04b2cf4462 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-02-04 22:59:02 +01:00
Franz Liedke
28e3ec4014 Convert more controller tests to feature tests 2020-02-04 22:59:02 +01:00
Franz Liedke
a6decb2350 Update vulnerable JS dependencies 2020-02-04 22:59:02 +01:00
Franz Liedke
1e55361539 Send a HTTP 401 for incorrect login credentials
This fixes a regression from #1843 and #1854. Now, the frontend again
shows the proper "Incorrect login details" message instead of "You
do not have permission to do that".
2020-02-04 22:59:02 +01:00