Commit Graph

3364 Commits

Author SHA1 Message Date
flarum-bot
0d60a811d3 Bundled output for commit c26c06faf6 [skip ci] 2020-01-31 12:34:20 +00:00
Franz Liedke
c26c06faf6 Merge pull request #1975 from flarum/fl/194-better-slugs
Use Laravel's slugger for basic transliteration
2020-01-31 13:32:55 +01:00
flarum-bot
77bb187520 Bundled output for commit fb99f59fff [skip ci] 2020-01-26 22:38:29 +00:00
Clark Winkelmann
fb99f59fff Fix the "reply posted" alert empty body 2020-01-26 23:37:19 +01:00
Franz Liedke
21dcaa4c1d Remove unnecessary use statement 2020-01-26 20:21:19 +01:00
ozzzzzzzam
50ccbfe627 Remove forum title from confirmation email subject (#1613)
The forum title is already used as the display name for the sender email address, so having it in the subject is just a duplication and waste of space.
2020-01-25 14:35:47 +01:00
Matthew Kilgore
93c6babc61 Additional functionality for Middleware extender
Implements the remove, insertBefore, insertAfter and replace
functionality for middlewares.

The IoC container now holds one array of middleware (bindings) per
frontend stack - the extender operates on that array, before it is
wrapped in a middleware "pipe".

Fixes #1957, closes #1971.
2020-01-24 21:20:33 +01:00
Franz Liedke
b7bda37380 Add BC layer for mail driver configuration
By commenting out the new methods on the `DriverInterface` and checking
for these methods' existence before calling them, old implementations in
extensions will not break right away.

This will be removed after beta.12 is released, giving extension authors
about two months time to update their extensions.
2020-01-24 18:04:16 +01:00
Franz Liedke
f22ba99214 Clarify the use-case of the JS slug helper 2020-01-24 17:42:14 +01:00
Franz Liedke
a2cc49b1d9 Use Laravel's slugger for basic transliteration
This is better than the current system, as it adds transliteration rules
for special characters, rather than just throwing all of them away.

For languages that cannot be transliterated to ASCII in a reasonable
manner, more possible improvements are outlined in #194.
2020-01-24 17:40:09 +01:00
Franz Liedke
1e6d7efdc0 Connect labels with their form fields 2020-01-24 15:41:26 +01:00
Franz Liedke
e70444d934 Style validation errors 2020-01-24 15:41:26 +01:00
Franz Liedke
89b0e16ef3 Mail drivers: Separate definition from validation 2020-01-24 15:41:26 +01:00
David Sevilla Martin
42861dd986 Change implementation to add validation rules, of which 'required' is shown in the frontend 2020-01-24 15:41:25 +01:00
David Sevilla Martin
96d3ae22f2 Add required fields, incomplete configuration warning, and null transport 2020-01-24 15:41:25 +01:00
flarum-bot
6f6958dd6b Bundled output for commit cb91d705c5 [skip ci] 2020-01-22 23:02:59 +00:00
David Sevilla Martín
cb91d705c5 Add Content for User page, preload user & throw 404 accordingly (#1901) 2020-01-23 00:01:26 +01:00
Franz Liedke
c80d704c0b Convert another test
Test the request, not a controller (implementation detail). This also
focuses on the observable behavior instead of hacking our way into the
middleware pipeline in order to observe internal behavior.

The authenticated user is now determined by looking at the API response
to compare permissions and (non-)existing JSON keys.
2020-01-22 23:39:41 +01:00
David Sevilla Martín
6697d3fb5e Initial template for Stale bot configuration (#1841) 2020-01-18 02:06:36 +01:00
Julian Berger
d0a23b756c Get translations from fallback catalogues (#1961) 2020-01-17 23:37:50 +01:00
Franz Liedke
152951f81b Add backwards compatibility layer for mail drivers
Support the old format (a simple list of available fields), in addition
to the new format (a map from field names to their types + metadata).

This will be removed after beta.12 is released.
2020-01-14 11:45:44 +01:00
Franz Liedke
dac47b5571 Document changes in mail driver interface 2020-01-14 11:44:29 +01:00
flarum-bot
059a41f9f0 Bundled output for commit 7ca7150b37 [skip ci] 2020-01-10 17:18:42 +00:00
Vladimir Vinogradov
7ca7150b37 Add Mailgun region setting
Fixes #1834.
2020-01-10 18:17:04 +01:00
Franz Liedke
eb9ee85b9d Ensure page parameters are always integers 2020-01-09 00:45:50 +01:00
Matt Kilgore
d55daf2a8c Change Zend namespace to Laminas (#1963)
Also ensure backwards compatibility for extensions that use the Zend framework but don't explicitly require it.
2020-01-06 22:29:34 +01:00
luceos
c31b004f0c Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-05 21:28:46 +00:00
Daniël Klabbers
536bfa7a34 Update LICENSE 2020-01-05 22:28:27 +01:00
Matt Kilgore
441d74f1af Middleware extender (#1952) 2019-12-12 09:22:04 +01:00
flarum-bot
7eb3ece6ad Bundled output for commit eeaf5227fd [skip ci] 2019-12-10 14:40:37 +00:00
Franz Liedke
eeaf5227fd Update Webpack 2019-12-10 15:38:56 +01:00
Franz Liedke
5ef3bacdfd Catch more exceptions during boot process
This extends our boot exception handling block to also catch and format
all exceptions that could be thrown while building our request handler,
i.e. the middleware stack handling requests.

The only exceptions that would now not be handled in this way could be
raised by Zend's `RequestHandlerRunner` and its delegates, which we
should be able to rely on.

Exceptions on request execution will be handled by the error handler in
the middleware stack.

Fixes #1607.
2019-12-07 01:16:48 +01:00
w-4
1293b95fc1 Fix update page with custom base path (#1947)
Calling UpdateHandler causes RouteNotFoundException when basepath is not /.
2019-12-04 23:37:33 +01:00
Franz Liedke
37c7df703f Link to security policy from README 2019-12-04 21:51:53 +01:00
Franz Liedke
250fb504ae FUNDING.yml does not inherit 2019-12-04 21:42:40 +01:00
Franz Liedke
41874988d5 Add a custom FUNDING.yml file for this repository
Let's hope GitHub inherits the lines from our default community health
files at https://github.com/flarum/.github.
2019-12-04 21:41:41 +01:00
Daniël Klabbers
dbd343a163 Update CHANGELOG.md 2019-12-02 10:36:41 +01:00
Daniel Klabbers
6313513dd9 releasing beta 11.1 2019-12-02 09:28:48 +01:00
Franz Liedke
93c66d913a Fix implementations of settings repo interface 2019-12-01 22:10:58 +01:00
Daniel Klabbers
928b8cba7a Revert "7.4 release, forcing tests to work with them"
This reverts commit 82af8f24ec.
2019-11-29 13:01:51 +01:00
Daniel Klabbers
82af8f24ec 7.4 release, forcing tests to work with them 2019-11-29 13:00:34 +01:00
David Sevilla Martín
209cf8a25d Update Application version string to beta 11 2019-11-28 11:40:42 +01:00
Franz Liedke
5020a3a927 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-28 00:16:50 +00:00
Franz Liedke
e73c421efa Update copyright claims in LICENSE 2019-11-28 01:14:16 +01:00
Daniel Klabbers
eadeb75afa preparing the changelog for beta 11, part 2 2019-11-26 13:23:09 +01:00
Daniel Klabbers
b4db0bac91 preparing the changelog for beta 11 2019-11-26 12:59:29 +01:00
Clark Winkelmann
c7634e48b6 Fix tests to include expectation count and run user saving events 2019-11-26 10:13:18 +01:00
Clark Winkelmann
c2cd9174e4 Add unit test for AvatarUploader 2019-11-26 10:13:18 +01:00
Clark Winkelmann
64dfe9559b Fix avatar files not being deleted. Fixes #1918 2019-11-26 10:13:18 +01:00
flarum-bot
4506c7cfa3 Bundled output for commit 3acee604d4 [skip ci] 2019-11-24 19:01:17 +00:00