Match query hits in image and video descriptions

This commit is contained in:
arne 2025-11-19 20:21:59 +01:00
commit aec81cc1d7

View file

@ -21,4 +21,5 @@
(fn [post] (fn [post]
(or (match? (j/get post :content)) (or (match? (j/get post :content))
(match? (j/get-in post [:account :acct])) ; search for url + username of poster (match? (j/get-in post [:account :acct])) ; search for url + username of poster
(some #(match? (j/get % :username)) (j/get post :mentions)))))) (some #(match? (j/get % :username)) (j/get post :mentions))
(some #(when-let [desc (j/get % :description)] (match? desc)) (j/get post :media_attachments)))))) ; search in alt text