Skip to content

Filtering firehose to only new posts? #421

Description

@jetpacktuxedo

I suspect that I am just doing something wrong because I don't fully understand the underlying atproto scheme here, but I think this code should be filtering the firehouse down to just new posts/replies:

    async def on_message_handler(message) -> None:
        if message.header.t != '#commit':
            return
        commit = parse_subscribe_repos_message(message)
        if len(commit.ops) == 0:
            return
        op = commit.ops[0]
        if (
            (op.action == "create") and
            op.path.startswith("app.bsky.feed.post/")
        ):
            # Do stuff

However this shows ~6-7k posts for some users just over the past day which seems like a lot if I go scroll through their actual profiles... For some users that is >10% of their total post count according to the bsky UI. Is there something other than posts/replies that would make it through that filter that I'm not accounting for?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions