1
0
mirror of https://github.com/flarum/core.git synced 2025-08-14 20:34:10 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
SychO9
eb3a60338f chore: Release v1.1.1 2021-10-22 10:28:37 +01:00
Sami Mazouz
9c8dceff33 perf: Temporary quick fix for tags state performance (#3117) 2021-10-21 21:56:12 +01:00
3 changed files with 16 additions and 1 deletions

View File

@@ -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)

View File

@@ -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'])) {

View File

@@ -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.