2067 Commits

Author SHA1 Message Date
Daniel Holmgren
1d663df503
Fix runtime flags open handles (#1497)
fix runtime flags open handles
2023-08-21 15:56:58 -05:00
Eric Bailey
cf17cfe53b
Merge pull request #1498 from bluesky-social/eric/fix-author-feed-test
make sure to await rejected promise expectations
2023-08-21 15:50:45 -05:00
Eric Bailey
24a5414b64 make sure to await rejected promise expectations 2023-08-21 15:42:45 -05:00
Daniel Holmgren
b45c9aab6b
Misc fixes (#1492)
* proxy typeahead

* proxy post thread

* disable migration

* error handling on db

* fix case where replica explicitly configured w/ no tags

* appview build

* tidy

* block handling on some appview endpoints

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2023-08-21 15:30:34 -04:00
Eric Bailey
be794d2026 opaque errors 2023-08-21 10:02:15 -05:00
Eric Bailey
3576d10845 allow network to process 2023-08-21 09:59:47 -05:00
Eric Bailey
cf1cd0610a fix canProxyRead updated usage 2023-08-18 17:20:40 -05:00
Eric Bailey
1780afb3ee Merge remote-tracking branch 'origin' into eric/app-796-likes-tab
* origin:
  Runtime flags in PDS, appview-proxy flags (#1491)
2023-08-18 17:19:02 -05:00
Eric Bailey
9b1f5f0124 only allow viewing your own likes 2023-08-18 16:25:07 -05:00
devin ivy
8de64178c0
Runtime flags in PDS, appview-proxy flags (#1491)
* basic system for runtime flags in pds

* apply appview-proxy runtime flags, tidy/fixes

* fix no-did case
2023-08-18 12:32:54 -05:00
Eric Bailey
048cd16d0c Merge remote-tracking branch 'origin' into eric/app-796-likes-tab
* origin: (21 commits)
  styleguide
  Increase CI test matrix size (#1490)
  tweak author-feed rejects test syntax
  update test
  format
  add repost of reply, update snaps
  simplify query
  fix typos
  include reposted replies in posts_no_replies filter
  fix bad test syntax
  fix actor takedown tests
  use getActor, failing atm
  only include media posts by post creator
  Fix condition for viewing soft-deleted followers (#1485)
   Expose takendown profile, their follows and followers to mods (#1456)
  Handle revalidation (#1474)
  Handle db pool errors on appview (#1483)
  Handle db client errors on appview (#1481)
  v0.6.4
   Allow creating moderation action with a duration (#1431)
  ...
2023-08-18 11:10:04 -05:00
Eric Bailey
9bb2273c17
Merge pull request #1487 from bluesky-social/eric/fix-1197-reposted-replies
include reposted replies in posts_no_replies filter
2023-08-17 19:15:49 -05:00
Eric Bailey
2b228a1e6f styleguide 2023-08-17 18:30:29 -05:00
Eric Bailey
9082a9ac78 Merge remote-tracking branch 'origin' into eric/fix-1197-reposted-replies
* origin:
  Increase CI test matrix size (#1490)
  Fix condition for viewing soft-deleted followers (#1485)
   Expose takendown profile, their follows and followers to mods (#1456)
  Handle revalidation (#1474)
  Handle db pool errors on appview (#1483)
  Handle db client errors on appview (#1481)
2023-08-17 18:25:32 -05:00
Daniel Holmgren
2413f48c93
Increase CI test matrix size (#1490)
* increase test matrix size

* tweak author feed tests
2023-08-17 18:24:42 -05:00
Eric Bailey
1c50428428 tweak author-feed rejects test syntax 2023-08-17 18:21:13 -05:00
Eric Bailey
88ea0b2693 update test 2023-08-17 17:16:21 -05:00
Eric Bailey
33685b8408 format 2023-08-17 15:50:12 -05:00
Eric Bailey
0ea353b21f add repost of reply, update snaps 2023-08-17 15:30:30 -05:00
Eric Bailey
2e90124f72 simplify query 2023-08-17 15:02:50 -05:00
Eric Bailey
377a9721b9 fix typos 2023-08-17 14:20:05 -05:00
Eric Bailey
d4b7d29c6b
Merge pull request #1486 from bluesky-social/eric/fix-1167-media-reposts
only include media posts by post creator
2023-08-17 14:18:15 -05:00
Eric Bailey
30cb6412ce include reposted replies in posts_no_replies filter
(cherry picked from commit 588cf2562cc61441c170fec4f2354eedee39c4f6)
2023-08-17 14:09:24 -05:00
Eric Bailey
40fde9585c fix bad test syntax 2023-08-17 14:02:56 -05:00
Eric Bailey
4347a21d92 fix actor takedown tests 2023-08-17 13:50:26 -05:00
Eric Bailey
ff0d2df6e3 use getActor, failing atm 2023-08-17 13:32:19 -05:00
Eric Bailey
1a5b422718 only include media posts by post creator 2023-08-17 12:10:36 -05:00
devin ivy
cd0cf15949
Fix condition for viewing soft-deleted followers (#1485)
fix condition for viewing soft-deleted followers
2023-08-17 11:08:03 -04:00
Foysal Ahamed
7c88b43fc5
Expose takendown profile, their follows and followers to mods (#1456)
*  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
2023-08-17 09:47:34 -04:00
Daniel Holmgren
4241ee16ec
Handle revalidation (#1474)
* easier hanlde revalidation

* remove duplicate line

* backup handle nameservers on appview

* fix tests & add a couple
2023-08-16 18:34:19 -05:00
devin ivy
34b84131be
Handle db pool errors on appview (#1483)
handle db pool errors on bav
2023-08-16 18:22:42 -04:00
devin ivy
8eb930382c
Handle db client errors on appview (#1481)
handle db client errors on bav
2023-08-16 14:02:42 -04:00
Devin Ivy
ea9d96e3a4 v0.6.4 2023-08-15 17:12:30 -04:00
Foysal Ahamed
7bc701e2e1
Allow creating moderation action with a duration (#1431)
*  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>
2023-08-15 15:44:53 -04:00
Eric Bailey
23d6feb3c9 add method to bsky agent 2023-08-15 13:58:40 -05:00
Eric Bailey
1a67abebe4 rename file 2023-08-15 13:58:30 -05:00
Eric Bailey
e0e7b39b16 add block and mute tests 2023-08-15 13:46:58 -05:00
Eric Bailey
79dcad4cf7 handle mutes 2023-08-15 11:25:38 -05:00
Eric Bailey
d9849b6776 get it working 2023-08-14 18:31:15 -05:00
Daniel Holmgren
73f64009a2
Appview database replicas (#1459)
* 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>
2023-08-14 18:38:00 -04:00
Eric Bailey
b05986f7d1 codegen 2023-08-14 15:39:48 -05:00
Eric Bailey
5b355adbf8 add getActorLikes lexicon 2023-08-14 15:32:00 -05:00
Eric Bailey
21ca9fb205
Merge pull request #1472 from bluesky-social/eric/old-bump 2023-08-14 10:51:35 -05:00
Eric Bailey
c16fcb84bc v0.0.3 2023-08-14 10:01:21 -05:00
Eric Bailey
b1571b405d v0.1.12 2023-08-14 10:01:21 -05:00
Jerry Chen
cfb6835664
Require bluesky-social/atproto for .github/workflows/build-and-push-* (#1460) 2023-08-11 15:46:42 -05:00
Paul Frazee
9a824aeae6 @atproto/api@0.6.3 2023-08-10 15:37:50 -07:00
Daniel Holmgren
244bf46e74
Include limited info on blocked embeds (#1463)
* add block info to embeds

* fix codegen

* Correctly handle blocked embeds and add block-other cause

* update snaps

* Correctly identify blocking behavior in embeds

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-08-10 15:54:24 -05:00
Paul Frazee
29a1ee791a @atproto/api@0.6.2 2023-08-10 12:53:35 -07:00
Daniel Holmgren
ba979b4cdb
Include limited viewer info on blocked post (#1457)
* include limited viewer info on block

* blockedAuthor schema

* make author required

* merge & update codegen

* patch up tests
2023-08-10 14:31:45 -05:00