Daniël Klabbers
ad9917f0d6
Allows callables for default model attribute to gain access
...
to the current model in order to calculate the value needed.
2020-10-07 11:26:58 +02:00
Daniël Klabbers
6977c24dd8
improve deprecated message for b15
2020-10-07 10:23:46 +02:00
Alexander Skvortsov
84d14f485a
Basic Extension Dependency Support ( #2188 )
...
- Don't enable an extension if its dependencies are not enabled
- Don't disable an extension if its dependencies are not disabled
2020-10-02 17:54:28 -04:00
Daniël Klabbers
a001736298
Mark keys for Config required only with InstalledSite ( #2323 )
...
* use fallback on url to prevent errors in cli during install. The value of the fallback doesn't actually matter, we just need something.
2020-09-30 15:38:19 -04:00
Daniël Klabbers
86d4bf0214
Fix for a bug that would delete the new revision of less/js in case the filenames match.
2020-09-30 09:26:32 +02:00
Daniël Klabbers
c7b67b922b
Allow easier overriding of js compiler ( #2318 )
2020-09-29 19:03:51 -04:00
Alexander Skvortsov
efd68df13a
Pass a translator instance to getEmailSubject on MailableInterface ( #2244 )
...
* Pass a translator instance to getMailSubject (breaking change)
* Temporarily comment out getEmailSubject to avoid BC breaks
2020-09-28 00:04:28 -04:00
Franz Liedke
6860b24b70
Use reserved TLD for default dev hostname
...
See https://jdebp.eu/FGA/dns-use-domain-names-that-you-own.html .
2020-09-27 22:55:46 +02:00
Franz Liedke
9ea57e6329
Use Config class for data from config.php
2020-09-25 11:10:52 +02:00
Franz Liedke
6639678fb2
Inject/use new config class where applicable
2020-09-25 10:58:53 +02:00
Franz Liedke
f869999011
Add a helper class for managing low-level config
2020-09-25 10:58:52 +02:00
Daniël Klabbers
aea8a3ff1f
Changes methods and properties from private to protected ( #2308 )
...
The goal of this PR is to offer increased flexibility for integrators and
custom solutions in skeleton modifications.
2020-09-24 14:30:16 -04:00
Alexander Skvortsov
6d38de9c8f
Revert https://github.com/flarum/core/pull/1536 ( #2305 )
2020-09-24 11:30:27 -04:00
Alexander Skvortsov
1321b8cc28
Revert "Use lifecycle interface for frontend extender ( #2211 )" ( #2301 )
...
This reverts commit 3117d2ad7a
.
2020-09-23 00:21:45 -04:00
Wadim Kalmykov
633cc14d09
Fix issue where posts API doesn't return the right amount of posts ( #2291 )
2020-09-17 23:59:34 -04:00
Alexander Skvortsov
c6e85ef330
Allow upper case TLS and SSL for SMTP encryption ( #2289 )
2020-09-12 17:43:06 -04:00
phanlyhuynh
3f8432a589
Fix SMTP username and password shouldn't be required ( #2287 )
2020-09-06 15:12:03 -04:00
Johannes Nilsson
384edfa52b
Remove unwanted semicolon in assets files ( #2280 )
2020-08-31 23:52:37 -04:00
Franz Liedke
f939d164b7
Make queue error handler compatible with Laravel 6 ( #2270 )
2020-08-27 22:41:36 -04:00
Alexander Skvortsov
8a73cc522e
Fix optional parameters in url generator ( #2246 )
...
* Fix route collection getting wrong path when optional parameters present, add unit tests
2020-07-28 20:51:14 -04:00
Franz Liedke
db83003eb5
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-07-27 19:42:23 +00:00
Franz Liedke
4dc4dc624e
Merge pull request #2243 from flarum/fl/2055-l6-translator
...
Upgrade to Laravel 6, finally!
2020-07-27 21:42:01 +02:00
Alexander Skvortsov
2431df5602
Revert "Fixes wrong IP address when using a reverse proxy ( #2236 )" ( #2242 )
...
This reverts commit 451a557532
pending further discussion of https://github.com/flarum/core/pull/2236#issuecomment-663645583
2020-07-24 14:19:10 -04:00
Alexander Skvortsov
4ee6d6fd88
Revert "Inject Url Generator and Translator Interface into notification mailer ( #2169 )"
...
This was actually already present and functional, so adding additional code for it
is unnecessary.
This reverts commit e627616750
.
2020-07-24 12:44:59 -04:00
Franz Liedke
b46d5e67a3
Make Translator compatible with Laravel 6
...
It's contract will change in Laravel 6. We extend from Symfony's
translator, but need to be compatible with that from Laravel in
order to use its validation package.
References:
- https://laravel.com/docs/6.x/upgrade#trans-and-trans-choice
- 8557dc56b1 (diff-88bc04a1548d09aa6250d902d1ac2b4c)
2020-07-24 17:32:50 +02:00
Franz Liedke
7fd23ff950
Inject Symfony translator contract, not Laravel's
...
The Laravel changes with v6, and our translator is primarily an
implementation of the Symfony contract.
2020-07-24 17:31:46 +02:00
Franz Liedke
e4077ab4ad
Replace a few forgotten obsolete helpers
...
- Apparently, I forgot that `array_flatten` comes from Laravel. :)
- When I did this previously, I did not search the views directory.
2020-07-24 17:28:56 +02:00
Franz Liedke
bca833d3f1
Remove Mandrill mail driver
...
This is in preparation for the upcoming upgrade to Laravel 6,
which dropped this driver.
Refs #2055 .
2020-07-24 16:39:28 +02:00
Jake Esser
451a557532
Fixes wrong IP address when using a reverse proxy ( #2236 )
...
Added reverse proxy support to preserve forwarded IPs
2020-07-22 08:55:44 -04:00
Alexander Skvortsov
eaac78650f
Deprecate AssertPermissionTrait ( #2044 )
2020-07-17 15:16:15 +02:00
Franz Liedke
2b3dec2be1
Fix deprecation and removal date
2020-07-17 12:19:48 +02:00
Alexander Skvortsov
37ebeb5705
User Extender (prepareGroups functionality) ( #2110 )
2020-07-17 12:18:35 +02:00
Franz Liedke
71abac0323
Rename view extender
...
As discussed in my initial review, it seems unlikely that we need
the ability to remove (or otherwise modify) namespaces again.
Therefore, it seems more consistent with other extenders to go
for a "View" extender with a "namespace" method.
Sorry for the back and forth. ;)
Refs #1891 , #2134 .
2020-07-17 12:05:49 +02:00
Franz Liedke
7e3d71a0a0
View extender: Do not resolve factory
...
Not all requests need this factory, so there is no need to
instantiate one and load the required files.
Refs #1891 , #2134 .
2020-07-17 12:05:38 +02:00
Alexander Skvortsov
b5e891df30
View Extender (add namespace) ( #2134 )
2020-07-17 11:59:00 +02:00
Alexander Skvortsov
3117d2ad7a
Use lifecycle interface for frontend extender ( #2211 )
2020-07-17 11:49:52 +02:00
Alexander Skvortsov
aaebd3581f
Fix: Use proper variable for display name drivers in user extender
2020-06-29 19:32:08 -04:00
Alexander Skvortsov
a33fbbf814
Add index page title, add mechanism to clear title from defaultRoute. ( #2047 )
...
* Add "All Descriptions title to index
* Added system to clear custom title if we're on the default route
2020-06-27 14:18:49 -04:00
Franz Liedke
88366fe8af
Clean up usages / deprecate path helpers ( #2155 )
...
* Write source map without creating temp file
Less I/O, and one less place where we access the global path helpers.
* Drop useless app_path() helper
This was probably taken straight from Laravel. There is no equivalent
concept in Flarum, so this should be safe to remove.
* Deprecate global path helpers
Developers using these helpers can inject the `Paths` class instead.
* Stop storing paths as strings in container
* Avoid using path helpers from Application class
* Deprecate path helpers from Application class
* Avoid using public_path() in prerequisite check
a) The comparison was already outdated, as a different path was passed.
b) We're trying to get rid of these global helpers.
2020-06-19 16:16:03 -04:00
Alexander Skvortsov
5bca4fda9d
Return the proper error code when wrong password when changing email ( #2171 )
2020-06-17 20:43:04 -04:00
Clark Winkelmann
b87c7189cc
Remove BioChanged event which is no longer used since beta 8 ( #2196 )
2020-06-15 00:21:06 -04:00
Clark Winkelmann
17c239388a
Fix AvatarChanged event ( #2197 )
...
* Fix AvatarChanged event not being dispatched when changing avatar
Also fix the uploader to trigger the event only once
2020-06-15 00:20:24 -04:00
Alexander Skvortsov
4da2994d1f
Group Gambit Improvements ( #2192 )
...
* - Add ID to fields searched in group gambit
- Use joins instead of looping in group gambit
* Add visibility scoping to group gambit
* call IDs userIds
* If group identifier is numerical, treat it as an ID
2020-06-08 17:35:24 -04:00
Matt Kilgore
293e2251ca
Fixes #2157 , Explicitly set SameSite value for cookies ( #2159 )
...
* Fixes #2157 , Explicitly set SameSite value for cookies by making samesite a config option in config.php. Also contains an update for the cookie library dependency
2020-06-03 22:53:30 -04:00
Alexander Skvortsov
d1750fecc0
Send Test Mail Feature ( #2023 )
...
- Add UI, backend for sending test emails
- Change mail settings endpoint to /api/mail/settings
2020-05-30 22:49:36 -04:00
Alexander Skvortsov
7b1269207e
Get rid of Laravel Gate contract ( #2181 )
...
* Get rid of unnecessary uses of gate
* Move gate off of Laravel's gate contract
2020-05-28 18:00:44 -04:00
Sami Mazouz
bab084a75f
Fix Paths test failing on Windows ( #2187 )
...
* Fix directory separator for windows os
* Change Paths to use a forward slash instead
2020-05-28 12:42:54 -04:00
Alexander Skvortsov
3c87f800dd
Instances of models should not matter when checking permissions ( #2186 )
2020-05-27 12:22:08 -04:00
Matt Kilgore
26256c436f
Fix installer removing URL port ( #2182 )
...
* Fix installer removing URL port
2020-05-25 14:35:22 +02:00
Franz Liedke
63397bb466
Allow manipulating error handler through extender
...
By giving each middleware a name, they can now be replaced or moved
around using the Middleware extender.
Fixes #2115 .
2020-05-24 08:47:26 +02:00