framework/extensions/mentions/js
Sami Mazouz d0669b08aa
perf(likes): limit likes relationship results (#3781)
* perf(core,mentions): limit `mentionedBy` post relation results

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* Apply fixes from StyleCI

* chore: use a static property to allow customization

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* chore: use a static property to allow customization

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* chore: include count in show post endpoint

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* chore: consistent locale key format

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* chore: forgot to delete `FilterVisiblePosts`

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* test: `mentionedByCount` must not include invisible posts to actor

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* fix: visibility scoping on `mentionedByCount`

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* fix: `loadAggregates` conflicts with visibility scopers

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* Apply fixes from StyleCI

* chore: phpstan

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* perf(likes): limit `likes` relationship results

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* Apply fixes from StyleCI

* chore: simplify

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* test: `likesCount` is as expected

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* Apply fixes from StyleCI

---------

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: IanM <16573496+imorland@users.noreply.github.com>
2023-04-19 09:22:41 +01:00
..
dist Bundled output for commit fbbece4bda 2023-04-19 07:30:05 +00:00
src perf(likes): limit likes relationship results (#3781) 2023-04-19 09:22:41 +01:00
.gitignore chore: flarum-cli audit infra --fix 2022-01-20 03:45:09 -05:00
admin.js New mentions format, decouple usernames from mentions (#65) 2021-04-21 10:58:54 +01:00
forum.js chore: flarum-cli audit infra --fix 2022-01-20 03:45:09 -05:00
package.json chore(deps): bump webpack from 5.75.0 to 5.76.0 (#3761) 2023-04-19 07:45:00 +01:00
tsconfig.json feat: introduce frontend extenders (#3645) 2023-01-17 19:10:24 +01:00
webpack.config.js chore: flarum-cli audit infra --fix 2022-01-20 03:45:09 -05:00