Thread position
fact: quoted_post
Section titled “fact: quoted_post”fact: quoted_post will download the post that is being quoted by your captured post (the one that comes into your feed).
From there, you can access all the same facts as a regular post, if you use the path:
option. In the example below, we using the path $.post_author_handle
to check if the author of the quoted post is fyodork.bsky.nz
. The Auto Moderator will therefore log posts where fyodork.bsky.nz is the original author and someone else has quoted the post.
rules:- name: Quoted Post Author conditions: all: - fact: quoted_post path: $.post_author_handle operator: equal value: fyodork.bsky.nz
event: type: log
fact: replied_parent_post
Section titled “fact: replied_parent_post”fact: replied_parent_post looks at a post which has been replied to and logs relevant replies. In the example below, the Auto Moderator will log all replies to posts by Fyodork.
rules:- name: Fyodork Posts with Replies conditions: all: - fact: replied_parent_post path: $.post_author_handle operator: equal value: fyodork.bsky.nz
event: type: log
fact: replied_root_post
Section titled “fact: replied_root_post”fact: replied_root_post will look at the top most parent of a post that is in a reply thread. If a down thread reply has been captured by your feed, the Auto Moderator will log the captured post, and look at the original (root) post at the top of the thread. For example, you might want to run a rule which acts on that root post based on how many likes it has.
In the example below, replies that have been captured in the feed will be logged if there are more than 4 likes on the root post at the time of capture.
rules:- name: Parent Posts Likes conditions: all: - fact: replied_root_post path: $.raw_post_view.likeCount operator: greaterThan value: 4
event: type: log
fact: is_post_in_feed
Section titled “fact: is_post_in_feed”fact: is_post_in_feed allows you to determine if a given post is already in the feed or not. This could be useful if your feed captures posts and replies, but you don’t want to show the replies in your feed as well if the parent post is already in your feed.
rules:- name: Remove replies if parent is also in feed conditions: all: - fact: is_post_in_feed params: uri: reply_root operator: equal value: true event: type: hide
fact: is_post_in_feed
will return true
if the uri
passed in params
is currently in your feed. Otherwise it will return false
. A post’s uri
looks like this: at://did:plc:ihzif525llitrzvnb2qtu2t3/app.bsky.feed.post/3lg2g7ua2d22d