1
0
mirror of https://github.com/flarum/core.git synced 2025-08-30 19:40:02 +02:00
Commit Graph

8745 Commits

Author SHA1 Message Date
Toby Zerner
cf0ae80691 Remove use of event priorities
Event priorities are no longer in Laravel - see dbbfc62bef
2018-01-11 14:22:43 +10:30
Toby Zerner
2e6eda3ed1 Update policy method name
See flarum/core@ae2e07e94c
2018-01-11 14:11:57 +10:30
Toby Zerner
050d6bdc9e Remove use of event priorities
Event priorities are no longer in Laravel - see dbbfc62bef

Updated the AbstractPolicy terminology to reflect the new behaviour,
which is that there is no guarantee that the catch-all methods will run
after all specific methods have run globally. This behaviour is only
guaranteed within the policy.
2018-01-11 14:10:37 +10:30
Toby Zerner
c7aeef19ea Remove use of event priorities
Event priorities are no longer in Laravel - see dbbfc62bef

Now we can't force this event listener to be run before the discussion
metadata is updated; instead we just subtract one off of the new
last post number.
2018-01-11 14:06:43 +10:30
Toby Zerner
d14b20ca74 Change fire → dispatch
See a6c5128b46
2018-01-11 12:44:22 +10:30
Toby Zerner
77d33c8604 Update for visibility scoping API changes in core 2018-01-11 12:35:59 +10:30
Toby Zerner
60845eeee7 Use *Raw methods instead of Expression 2018-01-11 12:32:09 +10:30
Toby Zerner
608e42e616 Require beta 8 2018-01-11 12:29:53 +10:30
Toby Zerner
8afe0dfe97 Require beta 8 2018-01-11 12:29:42 +10:30
Toby Zerner
14bc69d6bd Use *Raw methods instead of Expression 2018-01-11 12:29:33 +10:30
Toby Zerner
d55945cefa Require beta 8 2018-01-11 12:28:46 +10:30
Toby Zerner
8bfaff339e Only pin to top if viewing a tag with no other filters 2018-01-11 12:28:35 +10:30
Toby Zerner
b58f97fd5e Require beta 8 2018-01-11 12:26:49 +10:30
Toby Zerner
dd0a7d9163 Require beta 8 2018-01-11 12:26:40 +10:30
Toby Zerner
78cf99554b Require beta 8 2018-01-11 12:25:51 +10:30
Toby Zerner
ba4ce1a9c9 Require beta 8 2018-01-11 12:25:45 +10:30
Toby Zerner
12fbbb6102 Require beta 8 2018-01-11 12:25:38 +10:30
Toby Zerner
365b338540 Require beta 8 2018-01-11 12:25:32 +10:30
Toby Zerner
6a0de0828d Require beta 8 2018-01-11 12:25:23 +10:30
Toby Zerner
7cecf23b0c Require beta 8 2018-01-11 12:25:15 +10:30
Toby Zerner
1f849a0c89 Require beta 8 2018-01-11 12:25:07 +10:30
Toby Zerner
71bf905ec3 Require beta 8 2018-01-11 12:24:50 +10:30
Toby Zerner
9ad0f2fb66 Require beta 8 2018-01-11 12:24:43 +10:30
Toby Zerner
f1342aa0cb Require beta 8 2018-01-11 12:23:55 +10:30
Toby Zerner
417d0ea59c Require beta 8 2018-01-11 12:23:20 +10:30
Toby Zerner
c0dd66bef5 Update for visibility scoping API changes in core 2018-01-11 12:19:20 +10:30
Toby Zerner
1b15f6cded Fix docblock return type 2018-01-11 12:11:48 +10:30
Toby Zerner
3b5a5ea2ba Use whereRaw instead of Expression 2018-01-11 11:56:18 +10:30
Toby Zerner
00ddef53b4 Use ::class, update some typehints 2018-01-11 11:55:57 +10:30
Franz Liedke
31bc5effe3 Translate new "Previous page" button on discussion list 2018-01-10 20:43:56 +01:00
Franz Liedke
b491bd1e36 Avoid calculations in views
Instead, look up existence of navigation links in the underlying
API document.
2018-01-10 20:39:53 +01:00
Franz Liedke
81c86b726c Use Blade's inject helper 2018-01-10 20:36:50 +01:00
Franz Liedke
973c629719 Add pagination link for previous page 2018-01-10 20:35:07 +01:00
Franz Liedke
a331f750cf Only display pagination link if necessary
Otherwise, search engines start indexing pages that aren't filled yet.

Refs #189.
2018-01-10 20:34:25 +01:00
Franz Liedke
c07ed29057 Don't use invokables with Container::call() 2018-01-10 19:37:18 +01:00
Franz Liedke
73662598ef Re-introduce Compat extender
Turns out Container::call() does not work with invokable classes.
Thus, we need to wrap callables in a custom extender class to
support injecting any resolvable type-hint automatically.

Refs #851.
2018-01-10 19:32:57 +01:00
Toby Zerner
cc1239fe9f Update test namespaces 2018-01-11 01:25:10 +10:30
Franz Liedke
d7536d4f50 Get rid of Compat extender
Now that we support any form of callable to be returned from the
bootstrap.php files, it is no longer needed.
2018-01-09 22:35:40 +01:00
Franz Liedke
37c29a14e5 Turn extenders into callables
This simplifies the API and gives extension developers more
flexibility, for a) maintaining backwards compatibility, and
b) doing advanced stuff that extenders do not allow.

Note that only extenders are guaranteed to work across
different versions of Flarum (once the API surface is stable).

See the discussion in https://github.com/flarum/core/pull/1335.
2018-01-09 20:49:51 +01:00
Daniel Klabbers
d175953f90 fixed two typehints on migrations repository 2018-01-09 16:28:50 +01:00
Toby Zerner
b140263830 Merge pull request #1340 from clarkwinkelmann/fix-password-changed-on-reset
Dispatch user events after password reset
2018-01-09 13:35:24 +10:30
Clark Winkelmann
9eae3cc318 Dispatch user events after password reset
Previously PasswordChanged was never sent
2018-01-09 03:44:06 +01:00
Franz Liedke
fd40e1a7fc Tweak route registration extender: Use plural
This makes it more consistent with other existing extenders,
while also making registration of multiple routes more
comfortable for extension developers, and likely slightly
more performant. :-)
2018-01-07 19:50:49 +01:00
AFR
80132f086c Custom Footer HTML Translations (#113)
* Custom Footer HTML Translations

* Reorder translation group alphabetically
2018-01-07 18:33:23 +01:00
Franz Liedke
cd6c259274 Merge pull request #1338 from gwillem/fix-permissions
Remove execute permissions from php/less files
2018-01-07 18:30:40 +01:00
Willem de Groot
257fb93d03 Fix StyleCI spacing 2018-01-06 12:03:02 +01:00
Willem de Groot
d613e5293c Remove execute permissions from php/less files 2018-01-06 11:59:25 +01:00
Toby Zerner
a8f792c34b Merge branch '0.1.0-beta.7' 2018-01-06 20:06:43 +10:30
Clark Winkelmann
31b925164c Always apply attributes from token when registering
The change introduced in #1033 transformed any identification attribute returned from an OAuth provider to just a default value.

When the identification attribute used by the provider is the email or username, this allowed the user to supply a different email or username and still getting an already-enabled account with the credentials he entered.

Skipping attributes with an existing value makes no sense here because it's a always a fresh user and values from AbstractOAuth2Controller::getIdentification() should always be enforced.
2018-01-06 20:04:42 +10:30
Franz Liedke
ebbcdac1f7 Use new extenders for bootstrapping 2018-01-05 23:52:42 +01:00