2067 Commits

Author SHA1 Message Date
Hailey
f83b4c8cad
api: Always apply self labels even if post is your own, downgrade hide moderation preference to blur when the post is your own (#2467)
* always show your post even if it's labeled

still apply to `contentMedia`

update tests

only apply to posts and `contentView`

add a comment

always show your post even if it's labeled

* Tweak to use a more consistent approach

* Add changeset

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2024-05-08 18:42:56 -07:00
Daniel Holmgren
c812902107
Dev-env introspection server (#2470)
* add dev-env introspection server

* Update packages/dev-env/src/introspect.ts

Co-authored-by: devin ivy <devinivy@gmail.com>

* lost a bracket

---------

Co-authored-by: devin ivy <devinivy@gmail.com>
2024-05-08 16:31:17 -05:00
github-actions[bot]
5226cbcc16
Version packages (#2465)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-06 18:05:57 -04:00
Devin Ivy
58f719cc1c add changeset 2024-05-02 17:20:24 -04:00
devin ivy
ec40af0c96
Appview: add grandparent author to reply ref, ensure no replies to blocked grandparent in feeds (#2461)
* lexicon: add parent reply author to #replyRef

* lexicon: tweak to naming in reply ref

* appview: hydrate and present grandparent author in feed items

* appview: ensure replies to blocked users don't appear in feeds via reply parents

* fix snaps

* fix snaps
2024-05-02 15:25:43 -04:00
Matthieu Sieben
173ef27cf8
fix(xrpc-server): add missing runtime dependency (#2463) 2024-05-02 21:18:34 +02:00
Matthieu Sieben
96ba62a336
allow running tests without docker
feat(dev-infra): allow running apps without docker
chore(dev): prevent tests from running if a command fails to run (#1825)
2024-05-02 20:39:51 +02:00
Foysal Ahamed
1c616b023e
Configure labeler service account in dev-env (#2363)
* 🚧 WIP attempting to make ozone work with local

*  Labeler service set up works

* Renmae account details for mod authority

* 🧹 Clean up createOzoneDid signature

* 🚨 Fix typedef

*  Adjust snapshot

*  Fix test with invite code

* 🚧 WIP

* 🚧 WIP

* 🚧 bring back test

* 🚧 bring back test

*  Update ozone snapshots

*  Update ozone snapshots
2024-05-01 17:06:45 +02:00
devin ivy
79f8e1e6f4
Appview: support alternate audiences on standard auth (#2458)
* appview: support alternate audiences on standard auth

* tidy
2024-04-30 14:56:37 -04:00
noriaki watanabe
24761c8bfa
Resolve duplicate refs in lexicon of ozone (#2451)
* Resolve duplicate refs

* Fix order of refs of "tools.ozone.moderation.emitEvent"
2024-04-30 11:32:43 -07:00
dan
6cd572c3a6
Add fast path for validating non-required undefined fields (#2452)
* Add fast path for validating non-required undefined fields

* Fix defaults
2024-04-29 20:43:00 +01:00
Daniel Holmgren
e3063041a3
Feed context & sendInteractions impl (#2402)
* forward feedContext on getFeed

* add sendInteractions to PDS

* fix typeof

* add feedContext to snapshots

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2024-04-26 17:30:08 -04:00
Eric Bailey
65a9fd7a5a
Pass through topics headers (#2447)
* Pass through topics headers

* Add PDS exception options, pass through headers

* Update packages/bsky/src/api/app/bsky/actor/getSuggestions.ts

Co-authored-by: devin ivy <devinivy@gmail.com>

* Feedback

---------

Co-authored-by: devin ivy <devinivy@gmail.com>
2024-04-26 10:44:46 -05:00
github-actions[bot]
651d4c2a34
Version packages (#2446)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-25 19:29:59 +02:00
Foysal Ahamed
58551bbe05
Allow muting reporter (#2390)
*  Allow muting reporter

*  Allow fetching ONLY muted subjects

* 🚨 re-run linter on fixed main

*  Track muted reports

*  Adjust snapshot

*  Adjust snapshot

*  Adjust snapshot

* 📝 Add changesets

* ♻️ Refactor muted reporter check

*  Use new event type for muting/unmuting reporter

* 🧹 Cleanup
2024-04-25 10:43:04 -04:00
github-actions[bot]
b9e205ae01
Version packages (#2443)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-24 11:53:09 -05:00
Eric Bailey
b9b7c58219
Add savedFeedsPrefV2 and new methods (#2427)
* Preview

* Double write v2 -> v1

* Add savedFeeds output

* Tightening up

* Revise and clean up APIs, update tests

* Codegen

* Enforce sort order

* Fix unrelated tests

* Reduce edits by using old naming

* Remove redundant test, fix title

* Add changeset

* Ensure unique constraints preserve insertion order if duplicates are found

* Adds addSavedFeeds as a convenience

* Use pluralized interfaces

* Update deprecation notices

* Update method naming

* Update deprecation comments

* Filter invalid types during migration

* Change uri of default timeline

* Fix typo
2024-04-24 11:48:50 -05:00
Matthieu Sieben
d9c1156376
fix(ozone): properly import "lande" ES module (from CJS) (#2441) 2024-04-23 22:53:31 +02:00
devin ivy
b07950682c
Appview: remove replies to blocked posts from feeds (#2430)
appview: remove replies to blocked posts from feeds
2024-04-19 19:07:01 -04:00
devin ivy
1faf634dda
PDS: handle S3 upload timeout more gracefully (#2429)
* pds: s3 upload timeout config, increase pds default

* pds: handle s3 upload timeout errors

* tidy
2024-04-19 18:29:36 -04:00
devin ivy
fbc7e75c40
Appview: maintain language info when going out to a suggestions service (#2424)
appview: maintain language info when going out to a suggestions service
2024-04-18 18:17:31 -04:00
devin ivy
2002b565f3
Appview: ensure hydration context tracks viewer did and not full service ref (#2423)
ensure hydration context tracks viewer did and not full service ref
2024-04-18 18:17:01 -04:00
Foysal Ahamed
6f1f54493e
Detect language from record content if lang property is not set (#2301)
*  Detect language from record content if lang property is not set

*  Update test snapshots for auto detected language

*  Update pds test snapshots

*  Adjust test to use the right method

* 🧹 Make list override param optional

* 🧹 Fix import

* 🚨 fix linter issues

* ♻️ Use record type for getting text from record

*  process records for appview to pick it up

* 🧹 Cleanup
2024-04-18 20:15:39 +02:00
github-actions[bot]
d0625be266
Version packages (#2422)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 09:45:44 -07:00
Paul Frazee
3424a17703
Add email auth factor tools to API (#2419)
* Add authFactorToken to session object

* Add changeset
2024-04-18 09:40:54 -07:00
github-actions[bot]
32c97d4c8b
Version packages (#2417)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-17 20:04:44 -04:00
devin ivy
93a4a4df9c
Lexicons: email auth factor (#2416)
* lexicon: email auth factor

* add changeset
2024-04-17 19:57:18 -04:00
Daniel Holmgren
cc090d2e50
Suggestions skeleton impl (#2403)
* schema

* codegen

* add skeletonActor def

* add optional viewer param

* codegen

* use suggestions skelete for getSuggestions

* make move route to unspecced

* use unspecced skeleton actor

* update agent call
2024-04-16 13:50:38 -05:00
Daniel Holmgren
45981de5c1
getSuggestionsSkeleton lexicon (#2399)
* schema

* codegen

* add skeletonActor def

* add optional viewer param

* codegen

* make move route to unspecced

* use unspecced skeleton actor
2024-04-16 13:50:17 -05:00
github-actions[bot]
1074f43b4a
Version packages (#2401)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-16 14:39:43 -04:00
devin ivy
c6d758b8b6
Appview: support new post search params, viewer context in search (#2409)
* remove viewer param from searchActorsTypeahead

* appview: pass new search params to search service, add viewer

* add changeset
2024-04-16 14:10:30 -04:00
bnewbold
a40b054812
fix test errors in "relax restriction on handle length in PDS" (#2410)
* relax restriction on handle length in PDS.

* add test to validate restriction on handle length.

* make fmt

* resolve test issues with too-long handles

* attempt to resolve appview test issues with too-long handles

---------

Co-authored-by: itaru2622 <itaru2622@gmail.com>
2024-04-15 20:05:49 -07:00
Foysal Ahamed
d4d5a6edba
When multiple tags are ex/included, use OR operator instead of AND (#2386)
*  When multiple tags are ex/included, use OR operator instead of AND

* 🧹 Remove unnecessary casting
2024-04-15 11:15:21 -04:00
Foysal Ahamed
0f915a6337
🔒 Allow moderators to manage communication templates (#2364)
* 🔒 Allow moderators to manage communication templates

*  Adjust test to check errors properly
2024-04-15 08:51:30 -04:00
bnewbold
a2d5658f28
lexicons: add more search parameters (#2396)
* lex: add account to actor search, for following boost

* lex: addition post search query params

* lex: add tag to post search; set default for sort

* lex: fix formats and skeleton consistency

* lex: searchPosts 'until' should be exclusive

* lex: relax post time range syntax

* lex: allow multiple tags ('AND') as search params

* make fmt

* lex: use 'viewer' for account DID making profile search

* lex: no viewer param in searchActor (only skeleton); do include in post skeleton

* codegen search param additions
2024-04-11 16:45:13 -07:00
Daniel Holmgren
0edef0ec01
Feed interactions schema (#2383)
* first pass schemas

* requestFeedback boolean

* rewrite schemas

* tidy

* tidy

* tweaks

* pr feedback

* codegen + lint

* changeset

* rm default
2024-04-10 19:27:17 -05:00
devin ivy
84cdc5b65a
Appview: include like/repost/reply counts on post embed (#2395)
* lexicon: add post counts to embed#viewRecord

* appview: hydrate and present aggregations on post embeds

* update snaps for aggregations on post embeds
2024-04-09 21:24:47 -04:00
Matthieu Sieben
b8f8f06a12
fix(codegen): fix use of prettier.format for codegen (#2393)
* fix(codegen): fix use of prettier.format for codegen

* chore(deps): remove unused "babel" dependency

* chore(deps): update typescript to latest (5.4.4)
2024-04-09 10:07:47 -04:00
Foysal Ahamed
f5c830a33b
Let mods search posts on author feed (#2374) 2024-04-08 11:18:06 -04:00
devin ivy
2e2a97badf
Use blocked and not-found unions in post reply refs (#2359)
* appview: use blocked and not-found post views on feed items

* appview: remove unused view flag
2024-04-08 10:05:29 -04:00
bnewbold
6b3addd733
lexicon: add support for TID and record-key string formats (#2377)
add support for TID and record-key string formats
2024-04-05 19:14:13 -07:00
devin ivy
7570d31829
Always include counts on post and profile views (#2357)
* appview: ensure counts are set in all views, even when aggs are missing

* pds: ensure counts are set on post view in read-after-write, fix $type typo
2024-04-04 22:13:28 -04:00
github-actions[bot]
692d1b2cd8
Version packages (#2385)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-04 18:01:34 -05:00
Daniel Holmgren
cd4fcc709f
Configurable catchall on xrpc-server (#2384)
* allow configurable catchall on xrpc-server

* changeset
2024-04-04 17:58:16 -05:00
github-actions[bot]
115df69574
Version packages (#2382)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-03 17:05:18 -04:00
Devin Ivy
d77ac35d48 pds: add changeset 2024-04-03 16:56:48 -04:00
devin ivy
9b78f06134
Fix to blob deletion w/ disk store (#2381)
pds: ensure account deletion doesn't touch others' blobs
2024-04-03 16:54:41 -04:00
Matthieu Sieben
97482da17a
Update prettier & eslint (#2373)
* chore(deps): update linting tools

* style(lint): format code
2024-04-03 21:39:11 +02:00
Daniel Holmgren
a1e22df57e
Timeout blob uploads (#2375)
timeout blob uploads to s3
2024-03-31 00:53:33 -05:00
bnewbold
2f62faab6f
lex: limit createReport size (#2362)
* lex: limit createReport size

This has actually be limited on the *output* for a long time, apparently
as a mistake/typo when locking down string length fields earlier.

Going with the existing length there (2000 graphemes). 1200 might also
be good; a longer description could be a future additional field or
out-of-band or something.

* codegen lex changes
2024-03-22 21:04:02 +00:00