Commit Graph

5334 Commits

Author SHA1 Message Date
Eric Bailey 5dbb2c2b4c Remove validation, fix type, fix ref 2025-01-08 11:37:19 -06:00
Eric Bailey 4a1695b798 Add AnyStarterPackView and related, implement in first usage 2025-01-08 11:37:19 -06:00
Eric Bailey 54a5d56447 Patch moderateProfile to accept known profile views, to discuss 2025-01-08 11:37:19 -06:00
Eric Bailey 9499e2fc85 Clean up handling 2025-01-08 11:37:19 -06:00
Eric Bailey a5e03d13c2 Convert object shape 2025-01-08 11:37:19 -06:00
Eric Bailey 9990c833cf Use AnyProfileVIew 2025-01-08 11:37:19 -06:00
Eric Bailey 7dcf6b8de4 Use dangerous util 2025-01-08 11:37:19 -06:00
Eric Bailey e2c3600447 Use dangerous util, we can trust post records 2025-01-08 11:37:19 -06:00
Eric Bailey 44cb25d3a1 Use dangerous util 2025-01-08 11:37:18 -06:00
Eric Bailey 31673b6458 Use dangerous util 2025-01-08 11:37:18 -06:00
Eric Bailey 964fc20244 Convert object shape 2025-01-08 11:37:18 -06:00
Eric Bailey 248bff26e1 Rename to dangerousIsType 2025-01-08 11:37:18 -06:00
Eric Bailey 1c8b9899bd Use new util 2025-01-08 11:37:18 -06:00
Matthieu Sieben 31ae18591c suggestions (#7382)
* suggestions

* Revert unneeded changes

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2025-01-08 11:37:18 -06:00
Eric Bailey 09cb5aa53b Use fastIsType where no validation was happening before 2025-01-08 11:37:18 -06:00
Eric Bailey b100d185b1 Comment 2025-01-08 11:37:18 -06:00
Eric Bailey 4e9388a76d Use util types 2025-01-08 11:37:18 -06:00
Eric Bailey f58dc57aac Use assertDid
Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com>
2025-01-08 11:37:18 -06:00
Eric Bailey e4b6972c05 Add fastIsType util 2025-01-08 11:37:18 -06:00
Eric Bailey e1a60bfa3c Tighten up types now that we have AnyProfileView 2025-01-08 11:37:18 -06:00
Eric Bailey a4e4e12d57 Cast for perf reasons 2025-01-08 11:37:18 -06:00
Eric Bailey 9e7d34a730 Expand AnyProfileView to include chat profile view, update post shadow to reflect this 2025-01-08 11:37:18 -06:00
Eric Bailey 55055c1cd0 Add parseEmbed utils 2025-01-08 11:37:18 -06:00
Eric Bailey e23ce16ff2 [@next] Profile handling, migrate ProfileCard (#7347)
* Introduce new utils for profiles, migrate old ProfileCard

* Rename, reorg
2025-01-08 11:37:18 -06:00
Eric Bailey 6c7cfc0047 Migrate guard in Wizard/State 2025-01-08 11:37:18 -06:00
Eric Bailey 4053b72416 Migrate a guard in notifications/util 2025-01-08 11:37:18 -06:00
Eric Bailey beb62f4961 Add correct type guards to notifications/feed 2025-01-08 11:37:18 -06:00
Eric Bailey aa18e81a1d Use correct type in post-feed 2025-01-08 11:37:18 -06:00
Eric Bailey 16addd8658 FIX potential bug in post-thread 2025-01-08 11:37:18 -06:00
Eric Bailey 0531cc7d89 Use correct type in post-quotes 2025-01-08 11:37:18 -06:00
Eric Bailey 46bf56e3e3 Specify exact types in post-thread 2025-01-08 11:37:18 -06:00
Eric Bailey f2a8c5c951 Migrate postgate/index 2025-01-08 11:37:18 -06:00
Eric Bailey 626cfc80eb Ditto last 2025-01-08 11:37:18 -06:00
Eric Bailey a5c1fd7554 Use internal type util to align types 2025-01-08 11:37:18 -06:00
Eric Bailey 3b3a5e0e13 Specify exact types in search-posts 2025-01-08 11:37:18 -06:00
Eric Bailey a7b0111155 Todo 2025-01-08 11:37:18 -06:00
Eric Bailey 876ce4af7f Fix up types in starter-packs queries 2025-01-08 11:37:18 -06:00
Eric Bailey 1e8823a507 Fix types in threadgates 2025-01-08 11:37:18 -06:00
Eric Bailey 68626a51e7 Migrate to isValidRecord in threadgate/util 2025-01-08 11:37:18 -06:00
Eric Bailey b0685612d0 Migrate to isValidView in queries/util 2025-01-08 11:37:18 -06:00
Eric Bailey 37c5329e4f Migrate another isValidRecord in NotificationFeedItem 2025-01-08 11:37:18 -06:00
Eric Bailey 9182a6a0fc Improve MediaPreview types 2025-01-08 11:37:18 -06:00
Eric Bailey 2c782d72ec Use isValidRecord in NotfyFeedItem 2025-01-08 11:37:18 -06:00
Eric Bailey a238666a96 Todo 2025-01-08 11:37:18 -06:00
Eric Bailey b7da85d2df Use matching types in NotificationFeedItem 2025-01-08 11:37:18 -06:00
Eric Bailey ac559171fc Omit type from constraint in avatar props 2025-01-08 11:37:18 -06:00
Eric Bailey aac65a8e0c Use matching type if PostRepostedBy 2025-01-08 11:37:18 -06:00
Eric Bailey b0d195aec4 Migrate to isValidRecord in PostFeedItem 2025-01-08 11:37:18 -06:00
Eric Bailey 3ea6ec14a0 Use matching type in ProfileFollowers screen 2025-01-08 11:37:18 -06:00
Eric Bailey 5c7e38eccf Use matching type in ProfileFollows screen 2025-01-08 11:37:18 -06:00