mirror of
https://github.com/flarum/core.git
synced 2025-08-30 19:40:02 +02:00
perf(core,mentions): limit mentionedBy
post relation results (#3780)
* 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> --------- Signed-off-by: Sami Mazouz <sychocouldy@gmail.com> Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -25,6 +25,11 @@ flarum-mentions:
|
||||
mention_tooltip: Mention a user, group or post
|
||||
reply_to_post_text: "Reply to #{number}"
|
||||
|
||||
# These translations are used by the mentioned by modal dialog.
|
||||
mentioned_by:
|
||||
title: Replies to this post
|
||||
load_more_button: => core.ref.load_more
|
||||
|
||||
# These translations are used by the Notifications dropdown, a.k.a. "the bell".
|
||||
notifications:
|
||||
others_text: => core.ref.some_others
|
||||
@@ -34,6 +39,7 @@ flarum-mentions:
|
||||
|
||||
# These translations are displayed beneath individual posts.
|
||||
post:
|
||||
mentioned_by_more_text: "{count} more replies."
|
||||
mentioned_by_self_text: "{users} replied to this." # Can be pluralized to agree with the number of users!
|
||||
mentioned_by_text: "{users} replied to this." # Can be pluralized to agree with the number of users!
|
||||
others_text: => core.ref.some_others
|
||||
|
Reference in New Issue
Block a user