5bbefa3e4b
Merge remote-tracking branch 'origin/main' into search_combined
2025-01-22 15:55:47 -05:00
af71cc55ab
Skip api test for community follower count ( fixes #5179 ) ( #5339 )
2025-01-22 12:18:03 +01:00
18ca39c559
Fixing API tests.
2025-01-20 21:28:13 -05:00
60e31b6dbb
Merge branch 'combined_inbox' into search_combined
2025-01-15 15:00:29 -05:00
Dessalines
3f06317878
Adding combined inbox ( #5257 )
...
* Renaming person_mention to person_comment_mention.
* Finishing up post body mentions.
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Most of the bulk work done, need to add tests yet.
* Finishing up inbox.
* Using assert_length
* Fixing sql_format.
* Running fmt.
* Fixing cargo shear.
* Fixing clippy.
* Addressing PR comments.
* Removing serialization
* Removing serialization
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f1671107
.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
* Updating lemmy-js-client
* Fixing mark all as read route, changing mark read to SuccessResponse.
* Adding post body mention api test, fixing api tests.
* Fixing route locations, and api tests.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-15 12:51:39 -05:00
09473c1cd1
Fixing route locations, and api tests.
2025-01-15 12:19:59 -05:00
236d8bda3e
Merge remote-tracking branch 'origin/main' into combined_inbox
2025-01-15 11:31:14 -05:00
5bc3f0c4d9
Pictrs delete token ( #5317 )
...
* Split image endpoints into API v3 and v4
* Move into subfolders
* Upload avatar endpoint and other changes
* Various other changes
fixes #1772
fixes #4001
* clippy
* config options
* fix ts bindings
* fix api tests
* Add option to disable image upload (fixes #1118 )
* split files into upload, download
* move sitemap to top level, not in api
* simplify code
* add upload user banner
* community icon/banner
* site icon/banner
* update js client
* wip
* add delete endpoints
* change comment
* optimization
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* move fn
* 1024px banner
* dont use static client
* fix api tests
* shear
* proxy pictrs in request.rs (fixes #5270 )
* clippy
* Get rid of pictrs delete token
* remove delete token params
* try to fix api tests
* fmt
* skip api tests
* clippy
* create user
* debug
* dbg
* ignore test
* test
* image
* run another
* fixed?
* clippy
* fix
* migration with column order
* drop default
* fix health check
* update client
* remove unused
* fix
* reuse delete_image_from_pictrs
* update lib
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-15 11:28:43 -05:00
Dessalines
c68473c122
Upgrading deps. ( #5326 )
...
* Upgrading deps.
* Upgrading a few more.
* A few more
2025-01-15 10:10:12 +01:00
893e02f2e5
Adding post body mention api test, fixing api tests.
2025-01-14 22:21:15 -05:00
Dessalines
9c1347c7a0
Adding Combined modlog ( #5253 )
...
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Addressing PR comments.
* Removing serialization
* Removing serialization
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f1671107
.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-14 15:14:58 +01:00
2fcf7cd468
Updating lemmy-js-client
2025-01-13 23:56:44 -05:00
38f5f4e043
Adding listPersonContent check.
2025-01-13 23:47:30 -05:00
Dessalines
85d8810139
Merge branch 'main' into combined_modlog
2025-01-13 23:23:11 -05:00
a91a03a536
Image api rework ( #5260 )
...
* Split image endpoints into API v3 and v4
* Move into subfolders
* Upload avatar endpoint and other changes
* Various other changes
fixes #1772
fixes #4001
* clippy
* config options
* fix ts bindings
* fix api tests
* Add option to disable image upload (fixes #1118 )
* split files into upload, download
* move sitemap to top level, not in api
* simplify code
* add upload user banner
* community icon/banner
* site icon/banner
* update js client
* wip
* add delete endpoints
* change comment
* optimization
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* move fn
* 1024px banner
* dont use static client
* fix api tests
* shear
* proxy pictrs in request.rs (fixes #5270 )
* clippy
* try to fix api tests
* skip api tests
* create user
* debug
* dbg
* test
* image
* run another
* fixed?
* clippy
* fix
* fix health check
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-13 16:09:00 -05:00
b6d0ecfcb3
Merge branch 'combined_profile' into combined_modlog
2025-01-03 09:16:54 -05:00
Dessalines
cc190aefdf
Use codeberg pictrs mirror to fix CI. ( #5286 )
2024-12-24 14:24:12 -05:00
Dessalines
9d3a0cef56
Adding report_combined
table. ( #5231 )
...
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Fixing api tests.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Addressing PR comments.
* Removing serialization
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-12-19 17:22:31 -05:00
fb1f2ff174
Merge branch 'combined_tables_2' into search_combined
2024-12-13 11:14:29 -05:00
3721067cce
Moving db_views_actor and _moderator into db_views.
...
- This is necessary because the combined views use both, and that
separation was arbitrary to begin with. db_schema has no such crate
separation.
2024-12-13 11:13:21 -05:00
ae9da4da69
Merge remote-tracking branch 'origin/main' into combined_tables_2
2024-12-12 19:23:20 -05:00
942da64f07
Merge remote-tracking branch 'origin/main' into combined_modlog
2024-12-12 17:25:02 -05:00
6a9f924d20
More test coverage for user deletion ( #5259 )
2024-12-12 10:03:55 -05:00
c72d5e88d5
Addressing PR comments.
2024-12-12 09:46:16 -05:00
b3b8efdbc9
Updating pnpm
2024-12-09 22:10:29 -05:00
6318cac3f0
Upgrading package.json deps.
2024-12-09 22:09:34 -05:00
3e31e1c512
Comment out err.
2024-12-08 09:16:43 -05:00
67d72e36ac
Fixing api tests.
2024-12-07 21:19:49 -05:00
a940ce38ef
Merge remote-tracking branch 'origin/main' into combined_tables_2
2024-12-07 17:54:18 -05:00
5e7b30ac6a
Reorganize api endpoints ( fixes #2022 ) ( #5216 )
...
* Reorganize api endpoints (fixes #2022 )
* scopes
* move message rate limit
* move rate limit
* apply suggestions
* move my_user to separate endpoint
* remove taglines and custom emojis from siteview
* routes for api v3 and v4
* remove new features from api v3
* js client
* replace occurences of `v3`, fix routes
* replace getSite().my_user with getMyUser()
* update
* update config
* remove web::
* update
* prettier
* lockfile
* v
* fix settings
* move block endpoints
* more changes
* fmt
* update
* change some routes
* lockfile
* Add comment about deprecation
2024-12-07 14:06:33 -07:00
921d53227c
Addressing PR comments.
2024-12-04 12:48:41 -05:00
e1affa8696
Merge remote-tracking branch 'origin/main' into combined_tables_2
2024-12-04 12:39:59 -05:00
f065215e74
Add test cases for community with non-ascii name (ref #5239 ) ( #5246 )
...
* Add test cases for community with non-ascii name (ref #5239 )
* fmt
* Update run-federation-test.sh
2024-12-03 12:19:01 -05:00
82a14fc5fa
Fixing api tests.
2024-12-02 18:23:12 -05:00
dcf1cfca9b
Return content of removed comments for admins (ref #5232 ) ( #5245 )
...
* Return content of removed comments for admins (ref #5232 )
* fmt
* remove dbg
2024-12-02 17:06:39 -05:00
66a63df152
Instance blocks with mod log entry and expiration ( fixes #2506 ) ( #5214 )
...
* Instance blocks with mod log entry and expiration (fixes #2506 )
* separate table for instance block mod log
* fix tests
* fix ts
* modlog entry for allow instance
* fix test cleanup
* add back test
* clippy
* fix check
* more changes
* move files
* update
* sql fmt
* partly working
* fix setup
* cleanup
* fixes
* prettier
* try catch
* address comments
2024-11-28 18:21:43 -05:00
f6de3b0388
Enable site languages for new user ( fixes #5234 ) ( #5235 )
...
* Enable site languages for new user (fixes #5234 )
* test coverage
2024-11-28 18:03:14 -05:00
bb26a701bc
Proxy pictrs healthz endpoint ( #5224 )
2024-11-25 11:43:34 -05:00
b8dda06f5b
More test coverage for private community, fix some bugs ( #5207 )
...
* More test coverage for private community, fix some bugs
* fmt
* stuff
* attempted fix
* fix tests
* api tests passing
* fix tests
* apub lib
2024-11-22 10:49:56 -05:00
Dessalines
c4d864878f
Change "mark post as read", "hide post" api calls to take single post instead of multiple ( #5043 )
...
* Removing a few SuccessResponses for PostHide and MarkPostAsRead.
- This also removes the pointless multiple post_ids. These can be done
as individual calls on the front end anyway.
- Fixes #4755
* Fixing federation tests.
* Upgrading lemmy-js-client deps.
* Simplifying forms.
* Fixing forms.
* Removing indexing slicing from a test.
2024-11-13 09:36:18 -05:00
ad90cd77f9
Implement private communities ( #5076 )
...
* add private visibility
* filter private communities in post_view.rs
* also filter in comment_view
* community follower state
* remove unused method
* sql fmt
* add CommunityFollower.approved_by
* implement api endpoints
* api changes
* only admins can create private community for now
* add local api tests
* fix api tests
* follow remote private community
* use authorized fetch for content in private community
* federate community visibility
* dont mark content in private community as public
* expose ApprovalRequired in api
* also check content fetchable for outbox/featured
* address private community content to followers
* implement reject activity
* fix tests
* add files
* remove local api tests
* dont use delay
* is_new_instance
* single query for is_new_instance
* return subscribed type for pending follow
* working
* need to catch errors in waitUntil
* clippy
* fix query
* lint for unused async
* diesel.toml comment
* add comment
* avoid db reads
* rename approved_by to approver_id
* add helper
* form init
* list pending follows should return items for all communities
* clippy
* ci
* fix down migration
* fix api tests
* references
* rename
* run git diff
* ci
* fix schema check
* fix joins
* ci
* ci
* skip_serializing_none
* fix test
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-07 05:49:05 -05:00
Dessalines
a55e7fd9fe
Trying to use w3.org as a sample site to fix tests. ( #5170 )
...
- #5167
2024-11-06 10:20:30 -05:00
Dessalines
9f40387569
Fixing sample image to fix unit tests. ( #5167 )
...
Apparently yahoo.com doesnt want to return
metatags for my local CI runners anymore.
2024-11-05 11:45:58 -05:00
renovate[bot]
22e2290d7b
chore(deps): update npm ( #5153 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-31 22:47:04 -04:00
df07d8e31c
Skip api test for fetching nested comment ( #5152 )
2024-10-31 08:10:45 -04:00
Richard Schwab
920ffe1803
Allow admins to resolve removed or deleted objects via API ( #5061 )
...
* Allow admins to resolve removed or deleted objects via API
* Removing pointless TestUser.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-10-26 14:47:56 -04:00
renovate[bot]
c7210e39e7
Update typescript-eslint monorepo to v8.8.1 ( #5103 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-08 05:10:56 -04:00
renovate[bot]
b200aecec7
Update dependency @types/node to v22.7.4 ( #5096 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 01:03:06 -04:00
renovate[bot]
c4cfacd5cc
Update pnpm to v9.12.0 ( #5100 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:51:25 -04:00
renovate[bot]
1056cbf979
Update dependency eslint to v9.12.0 ( #5097 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 23:29:30 -04:00