client/posts: check reverse search permissions

cf. #424
This commit is contained in:
Eva
2025-04-04 07:28:26 +02:00
parent 782f069031
commit c8c06dac3a

View File

@ -181,6 +181,9 @@ class Post extends events.EventTarget {
}
static reverseSearch(content) {
if (!api.hasPrivilege("posts:reverseSearch")) {
return Promise.resolve();
}
let apiPromise = api.post(
uri.formatApiLink("posts", "reverse-search"),
{},