Franz Liedke
f47a4879c4
Merge pull request #1931 from flarum/dk/1869-queue-notifications
...
Notifications into the queue
2020-03-27 23:06:36 +01:00
Franz Liedke
119662f6ce
Add new method to DiscussionRenamedBlueprint
2020-03-27 16:22:39 +01:00
Franz Liedke
cf3e0cc5bc
Add BC layer for notification blueprints
...
This gives extension authors time to add the new `getAttributes()`
method to their `BlueprintInterface` implementations.
The layer itself is easy to remove in beta.14.
2020-03-27 16:22:38 +01:00
Franz Liedke
4c363fe76c
Remove unnecessary constructor parameter
2020-03-27 16:22:38 +01:00
Franz Liedke
2277f26e84
Remove Notifying event for now
...
As discussed with @luceos, let's add this once the use case comes up. It
might be a left-over from a previous state of this PR anyway.
2020-03-27 16:22:37 +01:00
Daniël Klabbers
dfaa400d85
Moved sending emails to the syncer
...
This separates sending each individual mail, thus hardening the app.
There are still many improvements possible in this code, e.g. chaining
these commands, making emails just another notification type and
listening to the Notify event instead. We can postpone this to a later
stable release.
2020-03-27 16:22:37 +01:00
Daniël Klabbers
8cdcb25fcc
Notifications into the queue
...
Forces notifications into a dedicated SendNotificationsJob and passed
to the queue.
- One static method re-used in the job ::getAttributes, is that okay or
use a trait?
- Do we want to use this solution and refactor into a better Hub after
stable, postpone this implementation or use it in b11?
2020-03-27 16:16:36 +01:00
Franz Liedke
20bc1e50fc
Convert last two controller tests to request tests
2020-03-27 13:39:38 +01:00
Daniël Klabbers
9ee12eebcd
fixes checking for enabled extension and correct pointer of 13e20c2ced
2020-03-27 13:29:16 +01:00
Franz Liedke
2deae4b058
Rename API tests for more consistency
...
I could not come up with a noun for the new "UpdateTest" for users, so
this is easier in terms of consistency.
2020-03-27 13:22:27 +01:00
Franz Liedke
4e2f91fa00
Convert more controller tests to request tests
2020-03-27 13:21:10 +01:00
Matt Kilgore
b0fd63adc3
Fix test and extender for middleware ( #2084 )
2020-03-27 11:00:30 +01:00
Daniël Klabbers
13e20c2ced
Resolved enabled extension test
...
The getEnabled method returns all extensions (previously) enabled, yet manually
uninstalled through composer. This does not reference the exact, current state
of the forum. getEnabledExtensions returns a list where the getEnabled list
is filtered on the extensions found in the composer installed.json file.
2020-03-25 11:47:39 +01:00
Matt Kilgore
84dafdd5c3
fix insertAfter and insertBefore middleware extender functions ( #2063 )
2020-03-20 22:59:57 +01:00
Franz Liedke
b3dc2c7571
Convert more controller tests to request tests
2020-03-20 18:54:20 +01:00
Franz Liedke
a70acdf9cb
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-03-20 17:28:58 +00:00
Franz Liedke
2b0bc2865d
Tests: Use new authenticatedAs option where useful
...
There are two more API integration tests that explicitly add the
"Authorization" header right now:
- `Flarum\Tests\integration\api\authentication\WithApiKeyTest`
- `Flarum\Tests\integration\api\csrf_protection\RequireCsrfTokenTest`
These two specifically test authentication, so in those cases the
explicitness seems desirable.
2020-03-20 18:28:35 +01:00
Franz Liedke
8e21fee06c
Replace authenticatedRequest() by request() option
...
I feel this makes the parameters a bit more clear, does not rely on
inheritance (you can only inherit from one class, but we might want more
of these helpers in the future), and has less side effects (e.g. no
creation and, more importantly, deletion of users in the database).
Refs #2052 .
2020-03-20 18:23:06 +01:00
Franz Liedke
6540049421
Tests: Extract trait for building requests
2020-03-20 17:51:03 +01:00
Alexander Skvortsov
fe8df6df4e
Add Authenticated Test Case utility
2020-03-20 17:18:35 +01:00
Alexander Skvortsov
01bbaadf2f
Users should not be able to restore discussions if deleted by admins ( #2037 )
2020-03-20 15:57:03 +01:00
flarum-bot
ae5bf9203e
Bundled output for commit 7458813d59
[skip ci]
2020-03-20 07:22:19 +00:00
Andreas Jacobsen
7458813d59
Update addTagList.js
2020-03-20 08:21:19 +01:00
Andreas Jacobsen
e8dd756345
Allow extensions to place items between tags link and tags list
...
This PR sets the priority of the tags list to -12, to allow placing a menu link on -11 between the link and the list.
Issue here: https://github.com/flarum/core/issues/1923
2020-03-20 08:21:19 +01:00
Franz Liedke
4d4a1e5e24
Update less.php to version 3.0
...
Now that we require PHP 7.2, this ensures we get the latest updates and
fixes as well.
Refs #1988 .
2020-03-17 23:12:23 +01:00
Matt Kilgore
77062dd833
Change Extenders properties to private ( #1958 )
2020-03-17 22:37:17 +01:00
dependabot[bot]
3e8aae3cff
Bump acorn from 6.4.0 to 6.4.1 in /js ( #2065 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 22:29:36 +01:00
Franz Liedke
21188eba39
CI: Fix broken build on GitHub Actions
...
The MySQL service is no longer started by default on these agents.
See https://github.blog/changelog/2020-02-21-github-actions-breaking-change-ubuntu-virtual-environments-will-no-longer-start-the-mysql-service-automatically/ .
2020-03-17 22:23:11 +01:00
dependabot[bot]
dd89498150
Bump acorn from 6.4.0 to 6.4.1 in /js ( #45 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 21:52:38 +01:00
dependabot[bot]
71981b4650
Bump acorn from 6.4.0 to 6.4.1 in /js ( #19 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:27:15 +01:00
dependabot[bot]
9e22f00a76
Bump acorn from 6.4.0 to 6.4.1 in /js ( #15 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:27:00 +01:00
dependabot[bot]
6cc270c8e8
Bump acorn from 6.4.0 to 6.4.1 in /js ( #22 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:26:46 +01:00
dependabot[bot]
0ccafc2cf0
Bump acorn from 6.4.0 to 6.4.1 in /js ( #22 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:26:34 +01:00
dependabot[bot]
eadb603853
Bump acorn from 6.4.0 to 6.4.1 in /js ( #18 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:26:18 +01:00
dependabot[bot]
865ac3e766
Bump acorn from 6.4.0 to 6.4.1 in /js ( #18 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:26:05 +01:00
dependabot[bot]
82978c57ce
Bump acorn from 6.4.0 to 6.4.1 in /js ( #24 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:25:50 +01:00
dependabot[bot]
ae3e4801de
Bump acorn from 6.4.0 to 6.4.1 in /js ( #9 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:24:49 +01:00
dependabot[bot]
011357216a
Bump acorn from 6.4.0 to 6.4.1 in /js ( #17 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:24:29 +01:00
dependabot[bot]
f847051413
Bump acorn from 6.4.0 to 6.4.1 in /js ( #23 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:24:14 +01:00
dependabot[bot]
fd9a49c38e
Bump acorn from 6.4.0 to 6.4.1 in /js ( #12 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:23:58 +01:00
dependabot[bot]
38f6ce3294
Bump acorn from 6.4.0 to 6.4.1 in /js ( #77 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:23:40 +01:00
dependabot[bot]
11b798a4a6
Bump acorn from 6.4.0 to 6.4.1 in /js ( #7 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:23:22 +01:00
dependabot[bot]
82bd8aecd1
Bump acorn from 6.4.0 to 6.4.1 in /js ( #15 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:22:55 +01:00
flarum-bot
b99f1bc384
Bundled output for commit 1c7dab6e07
[skip ci]
2020-03-09 12:41:19 +00:00
Daniël Klabbers
1c7dab6e07
showing start user in class list now
2020-03-09 13:39:26 +01:00
Robert Turner
9c674f0a8b
Fix mentioning a deleted user's post ( #41 )
...
Fixes #1956 - ErrorException: Trying to get property 'display_name' of
non-object. ConfigureMentions::addPostId method set mention details
based on if there was an existing post. This caused an error if there
was an existing post, but the user who posted had been deleted. The
mention details are now only set if there is a user associated with the
post being mentioned.
2020-03-06 23:04:24 +01:00
Alexander Skvortsov
a111ffe07b
Tweak confirmation message for deleting users
...
Posts are no longer deleted when users are deleted, so the message should reflect that. (#157 )
2020-03-06 21:42:08 +01:00
Franz Liedke
d4f030b0e1
tags: Add translations for HTML meta data
...
Closes #154 .
Refs flarum/tags#72 .
2020-03-06 20:39:50 +01:00
flarum-bot
d9dfc15a96
Bundled output for commit 54f1ec008d
[skip ci]
2020-03-06 19:39:36 +00:00
Franz Liedke
54f1ec008d
Tweak translation keys
...
Refs #72 .
2020-03-06 20:38:44 +01:00