1
0
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:
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

@@ -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();