mirror of
https://github.com/flarum/core.git
synced 2025-08-23 08:33:45 +02:00
chore: drop the need for a json-api-server fork
This commit is contained in:
@@ -51,7 +51,7 @@ class PostResourceFields
|
||||
Schema\Relationship\ToMany::make('likes')
|
||||
->type('users')
|
||||
->includable()
|
||||
->constrain(function (Builder $query, Context $context) {
|
||||
->scope(function (Builder $query, Context $context) {
|
||||
$actor = $context->getActor();
|
||||
$grammar = $query->getQuery()->getGrammar();
|
||||
|
||||
|
Reference in New Issue
Block a user