fix(search): fetch remote statuses only when resolving is allowed
Status search fetched any http(s) query from its remote server, for anonymous users, on every result page and with resolve=false, so anyone could make the server fetch URLs. As in Mastodon and in Pleroma's user search, fetch only with resolve=true, on the first page, and for anonymous users only if [:instance, :limit_to_local_content] is false. Based on Akkoma ca9e33ed2 and 17efec060. Co-authored-by: Oneric <oneric@oneric.stub>
This commit is contained in:
parent
3e9dc477c9
commit
db43aec782
6 changed files with 61 additions and 14 deletions
1
changelog.d/search-remote-fetch.security
Normal file
1
changelog.d/search-remote-fetch.security
Normal file
|
|
@ -0,0 +1 @@
|
|||
Status search only fetches remote URLs with resolve=true, on the first page, and for anonymous users only if limit_to_local_content allows it
|
||||
Loading…
Add table
Add a link
Reference in a new issue