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:
@@ -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')
|
||||
|
Reference in New Issue
Block a user