Commit Graph

13 Commits

Author SHA1 Message Date
Sami Mazouz
1ab3029e78
feat: post search adapted with global search (#4019) 2024-09-19 17:01:58 +01:00
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
Ian Morland
54c21459d6
feat(likes): Option to prevent users liking their own posts (#3534)
* Option to prevent users liking their own posts
* test: user can only like own post if setting ON

Co-authored-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-18 15:32:27 +01:00
Ian Morland
3246f5a8f6
feat(likes): Add likes tab to user profile (#3528) 2022-07-14 14:38:31 +01:00
Robert Korulczyk
bfdaee7e79 Add missing dot to liked_by_text translation (#29) 2021-07-01 21:52:56 +01:00
Alexander Skvortsov
6c27c08672 Update for ICU MessageFormat 2021-05-12 19:24:06 -04:00
Robert Korulczyk
5606fcc06b Move locale files from language pack to extension. (#23) 2021-02-17 16:26:14 -05:00
Alexander Skvortsov
a9810ffb4c Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 21:42:03 -04:00
Toby Zerner
eee3f9ca92 Update for composer branch 2015-10-11 15:30:19 +10:30
Toby Zerner
d8507f599d Implement notification excerpts 2015-08-21 09:55:08 +09:30
Toby Zerner
420088acc9 Add missing translation 2015-07-23 14:27:24 +09:30
Toby Zerner
9c384bee98 Update for new extension API; implement l10n 2015-07-22 10:15:08 +09:30
Toby Zerner
e57eb5a14f Initial commit 2015-06-23 10:25:24 +09:30