mirror of
https://github.com/flarum/core.git
synced 2025-08-14 20:34:10 +02:00
Compare commits
2 Commits
as/dropdow
...
v1.1.1
Author | SHA1 | Date | |
---|---|---|---|
|
eb3a60338f | ||
|
9c8dceff33 |
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## [1.1.1](https://github.com/flarum/core/compare/v1.1.0...v1.1.1)
|
||||
|
||||
### Fixed
|
||||
- Performance issue with very large communities.
|
||||
|
||||
## [1.1.0](https://github.com/flarum/core/compare/v1.0.4...v1.1.0)
|
||||
|
||||
|
@@ -125,6 +125,17 @@ class ListDiscussionsController extends AbstractListController
|
||||
|
||||
$results = $results->getResults();
|
||||
|
||||
/*
|
||||
* @TODO replace in 1.2 with proper implementation!!!
|
||||
*/
|
||||
if (in_array('tags.state', $include, true)) {
|
||||
$results->load([
|
||||
'tags.state' => function ($query) use ($actor) {
|
||||
$query->where('user_id', $actor->id);
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
$this->loadRelations($results, $include);
|
||||
|
||||
if ($relations = array_intersect($include, ['firstPost', 'lastPost', 'mostRelevantPost'])) {
|
||||
|
@@ -21,7 +21,7 @@ class Application
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '1.1.0';
|
||||
const VERSION = '1.1.1';
|
||||
|
||||
/**
|
||||
* The IoC container for the Flarum application.
|
||||
|
Reference in New Issue
Block a user