* ✨ Allow moderators to see takendown profiles
* ✨ Allow moderators to see follows and followers of takendown account
* ♻️ Let auth check fail on optional verifier
* ♻️ Use role type to check moderator access
* ✨ Add action duration to action model
* ✨ Add periodic moderation action reversal
* ✨ Use actionDurationInHours and remove takedownExpiresAt
* ✨ Destroy mod action reversal job
* ✅ Add test for automatic moderation action reversal
* 🧹 Port over actionDuration to bsky package
* ♻️ Better naming for action duration and minor fixes
* ♻️ Optionally build expiresAt based on createdAt when logging action
* ♻️ Adjust constructor params
* ✨ Copy over migration from pds to bsky package
* 🚨 Fix indentation
* ✨ Propagate action reversal from app-view to pds
* ✨ Revert locally only if pushAgent is not found
* build
* merge dbcoordinator work into periodic mod actions
* fix entrypoint for periodic mod reversals
* do not run periodic reversals on sequencer leader
* fix duration in action detail on bsky
* update env for pushing mod reversals
* allow zero-duration actions for testing
* remove build
---------
Co-authored-by: Devin Ivy <devinivy@gmail.com>
* setup bsky so that writes always go to a db primary
* test bsky primary db functionality
* sprinkle db primary over moderation and view maintainer usage
* make bsky tests more strict on primary/secondary db, fixes
* maintain prev db config on appview, require primary db, make primary/replica explicit in config
* tidy
* sketch out db replicas
* wip
* support multiple tags per bsky replica, "any" tag, fallbacks and warns
* clarify tags
* use new coordinator api across routes & services
* wire-up replica tagging config
* tidy
* cleanup entroypoints and tests for db coordinator
* fix pds test
* re-hookup migrate db
* standardize env vars for db on bsky services
* tidy
* build
* fix bav api entrypoint
* support DB_POSTGRES_URL on ingester/indexer for backwards compat
* remove build
---------
Co-authored-by: Devin Ivy <devinivy@gmail.com>
* first pass on profiles
* quick test
* wip
* wip
* test post thread
* record embeds
* get author feed profiles
* wip timeline
* fix get timeline
* switch from counter to tid
* tidy into a service
* quick tid test
* pr feedback
* clock -> rev
* update image formatting
* disable migration & build branch
* add recent posts to getAuthorFeed & handle post thread not found errors
* refactor for lag header
* tidy
* rm collections check
* tidy test
* pr feedback
* fix small bug
* build branch
* get migrations into system
* enable migrations
* Add self-label schemas
* switch around array and union for self-labels
* apply self-labels to post and profile views
* test for self labels in pds
* apply self-labels to post and profile views in bsky appview
* test for self labels in bsky appview
* update pds proxied test snapshots
* Add support for self-labels to the mdoeration sdk
* Disable unknown-labeler filtering until 3P support is added
---------
Co-authored-by: Devin Ivy <devinivy@gmail.com>
* labeler: remove redundant 'underwear' label
This commit contains no change to mod policy, app behavior, etc.
We have been creating redundant "underwear" labels along with "sexual"
for many months. "sexual" is the actual label that gets actioned in mod
preferences, etc. The un-specified "underwear" labels are confusing and
take up resources on-disk and in API responses.
* reflect in appview
---------
Co-authored-by: dholms <dtholmgren@gmail.com>