@
Mario Vavtiso AND is
&&
and
OR is
||
??
so would this work:
?body ~= word1 || ?body ~= #hashtag
??
for advanced filtering I found this somewhere:
Advanced Filters
item Typs:
body
(content of the message)verb
(usually the same as the ActivityPub activity type, e.g. Create, Listen)obj_type
(usually the same as the ActivityPub object.type, e.g. Note, Event)item_thread_top
(first post in a thread, boolean)item_private
(0 = public message, 1 = restricted message, 2 = direct message)ua
(User-Agent string of delivery agent - custom item attribute that is not in the database)- ...etc...
Available comparison operators are:
?foo ~= baz
-- item.foo contains the string 'baz'?foo == baz
-- item.foo is the string 'baz'?foo != baz
-- item.foo is not the string 'baz'?foo // regex
-- item.foo matches the regular expression 'regex' - automatically wrapped in forward slashes unless you wrap it with some other character, for instance '=regex='.?foo >= 3
-- item.foo is greater than or equal to 3?foo > 3
-- item.foo is greater than 3?foo <= 3
-- item.foo is less than or equal to 3?foo < 3
-- item.foo is less than 3?foo {} baz
-- 'baz' is an array element in item.foo?foo {*} baz
-- 'baz' is an array key in item.foo?foo
-- true condition for item.foo?!foo
-- false condition for item.foo (The values 0, '', an empty array, and an unset value will all evaluate to false)
Example:
?verb == Announce
(matches ActivityPub "boosts")
FIELDS** ?+**
ActivityPub/ActivityStreams object match. This is literally the copied object attribute from the incoming activity.
Supports all the operators listed above.
Examples:
?+type == Question
-- matches ActivityPub polls