mirror of
https://github.com/flarum/core.git
synced 2025-08-23 00:23:25 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
eb3a60338f | ||
|
9c8dceff33 |
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# 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)
|
## [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();
|
$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);
|
$this->loadRelations($results, $include);
|
||||||
|
|
||||||
if ($relations = array_intersect($include, ['firstPost', 'lastPost', 'mostRelevantPost'])) {
|
if ($relations = array_intersect($include, ['firstPost', 'lastPost', 'mostRelevantPost'])) {
|
||||||
|
@@ -21,7 +21,7 @@ class Application
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '1.1.0';
|
const VERSION = '1.1.1';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The IoC container for the Flarum application.
|
* The IoC container for the Flarum application.
|
||||||
|
Reference in New Issue
Block a user