Feat add actors to meilisearch (#1048)
* initial commit * update api docs * adds search token versioning * make id filterable * isLocal -> is_local * add iri to actor index * update gitignore * Merge remote-tracking branch 'origin/main' into feat-add-actors-to-meilisearch * fix sharing for newly discovered actors * fix ActorSearchResult type --------- Co-authored-by: Christian Beutel <>
This commit is contained in:
@@ -45,7 +45,7 @@ func RemoteTrailCommentsList(e *core.RequestEvent) error {
|
||||
}
|
||||
|
||||
// Sync remote data first (Fetch + Save)
|
||||
if trail.GetString("iri") != "" && !trailAuthor.GetBool("isLocal") {
|
||||
if trail.GetString("iri") != "" && !trailAuthor.GetBool("is_local") {
|
||||
_ = syncRemoteComments(e, trail)
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ func SearchToken(client meilisearch.ServiceManager) func(e *core.RequestEvent) e
|
||||
"trails": map[string]string{
|
||||
"filter": "public = true OR author = " + userActor.Id + " OR shares = " + userActor.Id,
|
||||
},
|
||||
"actors": map[string]string{},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user