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

chore: drop the need for a json-api-server fork

This commit is contained in:
Sami Mazouz
2024-05-10 14:13:14 +01:00
parent a8777c6198
commit 51e2ab8502
44 changed files with 2015 additions and 88 deletions

View File

@@ -25,7 +25,7 @@ class PostResourceFields
Schema\Relationship\ToMany::make('mentionedBy')
->type('posts')
->includable()
->constrain(fn (Builder $query) => $query->oldest('id')->limit(static::$maxMentionedBy)),
->scope(fn (Builder $query) => $query->oldest('id')->limit(static::$maxMentionedBy)),
Schema\Relationship\ToMany::make('mentionsPosts')
->type('posts'),
Schema\Relationship\ToMany::make('mentionsUsers')