[EPIC]: Refactor internal event handling and webmentions #515

Open
opened 3 months ago by prologic · 1 comments
Owner

I propose the following set of changes to the way intenrla events and webmentions are handled on Yarn.social pods running yarnd:

  • Refactor the @twtxt bot/feed into a private per-user event stream such that:
    • Pod Admins get the following events:
      • NewUser -- An event that occurs whenever a new user registers
      • TooManyLoginAttempts -- An event that occurs whenever a user fails to login too many times or a user's account is under "brute force" logins by bad actors.
      • InvalidFeed -- An event that occurs anytime the pod attempts to fetch an invalid or bad feed
      • Feedlimited -- An event that occurs anytime the pod attempts to fetch a pod that has exceeded the -F/--max-fetch-limit
      • anything else?
    • Users get the following events:
      • NewFollower -- An event that occurs anytime thee user has a new follower
      • NewMention -- An event that occurs anytime the user has a new remote mention they don't already follow themselves.

Part of this work depends on #465 #438 #234

What do we think? cc @xuu @fastidious @eldersnake @adi @sorenpeter

I propose the following set of changes to the way intenrla events and webmentions are handled on [Yarn.social](https://yarn.social) pods running `yarnd`: - Refactor the `@twtxt` bot/feed into a private per-user event stream such that: - Pod Admins get the following events: - `NewUser` -- An event that occurs whenever a new user registers - `TooManyLoginAttempts` -- An event that occurs whenever a user fails to login too many times or a user's account is under "brute force" logins by bad actors. - `InvalidFeed` -- An event that occurs anytime the pod attempts to fetch an invalid or bad feed - `Feedlimited` -- An event that occurs anytime the pod attempts to fetch a pod that has exceeded the `-F/--max-fetch-limit` - _anything else?_ - Users get the following events: - `NewFollower` -- An event that occurs anytime thee user has a new follower - `NewMention` -- An event that occurs anytime the user has a new remote mention they don't already follow themselves. Part of this work depends on #465 #438 #234 What do we think? cc @xuu @fastidious @eldersnake @adi @sorenpeter
Collaborator

LGTM, pretty complete, I think.

EDIT: Also "EPIC", awesome! 😂

LGTM, pretty complete, I think. EDIT: Also "EPIC", awesome! 😂
Sign in to join this conversation.
Loading…
There is no content yet.