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
17d2de8691
Merge branch 'combined_modlog' into combined_inbox
2024-12-12 17:29:33 -05:00
942da64f07
Merge remote-tracking branch 'origin/main' into combined_modlog
2024-12-12 17:25:02 -05:00
8d91543a13
Allow admins to view deleted users ( fixes #5249 ) ( #5258 )
...
* Allow admins to view deleted users (fixes #5249 )
* remove check
2024-12-12 10:06:38 -05:00
41cfdca1cf
Finishing up inbox.
2024-12-11 22:12:56 -05:00
05f218d53c
Most of the bulk work done, need to add tests yet.
2024-12-11 15:06:08 -05:00
f133079f0b
Merge branch 'post_body_mentions' into combined_inbox
2024-12-10 14:33:28 -05:00
9d36f1f176
Adding the full combined view queries.
2024-12-09 14:34:53 -05:00
5c2205ae8b
Merge remote-tracking branch 'origin/main' into combined_modlog
2024-12-09 08:25:04 -05:00
Integral
9e17c517fe
refactor: replace static with const for global constants ( #5250 )
2024-12-09 10:31:07 +01:00
a4de41ddae
Merge branch 'combined_tables_2' into combined_profile
2024-12-07 21:20:25 -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
3abc46fad9
Finishing up combined person_saved and person_content.
2024-12-07 15:46:46 -05:00
32b5411abd
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.
2024-12-07 12:38:20 -05:00
1053df1a4b
Adding views and replaceable schema.
2024-12-06 09:49:11 -05:00
e1affa8696
Merge remote-tracking branch 'origin/main' into combined_tables_2
2024-12-04 12:39:59 -05:00
flamingos-cant
ff2bbf41ca
Use magic number to detemine file type ( #5225 )
...
* Revert "Guess image mime type from file extension (fixes #5196 ) (#5212 )"
This reverts commit 63ea99d38a
.
* Use magic numbers to determine file type.
* fmt
* Don't wrap response in an option
* Regen Cargo.lock
* Clean-up + guess mime type from extension if server is unresponsive
* Move some things about.
* Some cleanup.
* Removing comment lines.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-12-04 08:29:50 -05:00
46748210ee
Merge remote-tracking branch 'origin/main' into combined_tables_2
2024-12-02 17:07:03 -05:00
Mikoto
9505d1d205
feat: add PKCE ( #5189 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2024-12-02 16:47:03 -05:00
802a8a64e7
Cleanup.
2024-12-02 16:34:23 -05:00
0c854d2d3a
Forgot to remove list report actions.
2024-12-02 16:33:45 -05:00
7fdbb58e98
Fixing migration and paged API.
2024-12-02 13:28:26 -05:00
a9f28af554
Merge remote-tracking branch 'origin/main' into combined_tables_2
2024-11-28 18:25:55 -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
d8dda44010
Adding profile.
2024-11-27 16:37:05 -05:00
0ba961ff5c
Adding tests, triggers, and history updates for report_combined.
2024-11-27 16:02:11 -05:00
1ff8ae0641
Finishing up combined report table.
2024-11-26 16:53:01 -05:00
c0d7d76570
Remove getrandom dependency ( #5226 )
...
* Remove getrandom dependency
* fix
2024-11-25 18:20:45 -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
2848c076af
Add helper method for caching function results ( #5220 )
...
* Add helper method for caching function results
* fmt
2024-11-22 09:33:35 -05:00
63ea99d38a
Guess image mime type from file extension ( fixes #5196 ) ( #5212 )
...
* Guess image mime type from file extension (fixes #5196 )
* Mime check fixes. (#5213 )
* Mime check fixes.
* Adding back comment.
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-19 09:48:44 -05:00
Dessalines
417e18e819
Upgrading diesel and a few other deps. ( #5203 )
...
* Upgrading diesel and a few other deps.
* Update crates/db_schema/src/utils.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-11-18 10:23:02 -07:00
797aac7281
Check for error when fetching link metadata ( fixes #5127 ) ( #5129 )
...
* Check for error when fetching link metadata (fixes #5127 )
* use error_for_status everywhere
* dont ignore errors
* enable lint
* fixes
* review
* more review
2024-11-15 09:13:43 -05:00
Dessalines
fa4825b524
Removing a few expects from production and test code. ( #5193 )
...
* Removing a few expects from production and test code.
- Fixes #5192
* Using if let filter for admin emails.
* Fixing unused error.
* Adding expect_used = deny to clippy lints.
* Update src/lib.rs
Co-authored-by: Nutomic <me@nutomic.com>
* Update crates/utils/src/settings/structs.rs
Co-authored-by: Nutomic <me@nutomic.com>
* Update crates/utils/src/settings/mod.rs
Co-authored-by: Nutomic <me@nutomic.com>
* Some more cleanup.
* Fix clippy
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-11-15 08:18:52 -05:00
Dessalines
7f4e26e29e
Add ability to mark multiple posts as read. ( #5178 )
...
* 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.
* Add ability to mark several posts as read.
Context:
- https://github.com/LemmyNet/lemmy/pull/5043
- https://github.com/LemmyNet/lemmy/issues/4755
- https://github.com/LemmyNet/lemmy/pull/5160
* Fix ntfy to notify on success builds also.
* Addressing PR comments.
2024-11-14 09:03:39 -05:00
Dessalines
a9d6d4e6e0
Add user setting to auto-mark fetched posts as read. ( #5160 )
...
* Add user setting to auto-mark fetched posts as read.
- Rather than apps collecting up viewed posts ids, and sending many
mark as read requests, users can now turn this setting on, and any
results from /post/list will be auto-marked as read.
- Fixes #5144
* Adding list_post request option to auto-mark as read.
* Moving db_perf to before federation tests.
* Fixing lemmyerrortype import.
* Fixing ts_option.
* Fix clippy.
* Fix override logic.
* Revert "Fix override logic."
This reverts commit 923d7f0eca
.
* Changing name to mark_as_read
2024-11-13 10:05:16 -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
dullbananas
2e8687e203
Combine action tables ( #4459 )
...
* Update comment_report_view.rs
* Update comment_report_view.rs
* Update post_view.rs
* Update utils.rs
* Update schema.rs
* stuff
* stuff
* fix actions
* PostLike
* fmt
* more post stuff (partial)
* remove uplete
* returning
* rename read_comments field
* PersonPostAggregates
* a
* fix usage of read_comments_amount
* comment
* community
* community_block
* instance_block
* LocalUser::export_backup
* person_block
* person
* stuff (partial)
* update cargo.lock
* fix lemmy_db_schema
* post_view
* comment_report_view
* comment_view
* post_report_view
* find and replace some selected values
* private_message_view
* vote_view
* comment_reply_view
* some action views
* action_query, find_action
* community_view
* block views
* person_mention_view
* remove struct update
* refactor actions function
* actions_alias
* clean up return types and trait bounds
* fix all rust code
* fmt
* clippy fix
* Migrate tables
* migrate indexes and contraints, and add statistics
* fix what appears to be a messed up merge
* commented thing
* Create uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update up.sql
* Update comment.rs
* Update Cargo.toml
* Update comment.rs
* Update post.rs
* Update comment_view.rs
* Update post_view.rs
* Update comment_reply_view.rs
* Update person_mention_view.rs
* Update Cargo.toml
* Update utils.rs
* Update comment.rs
* Update utils.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update comment.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update comment_view.rs
* Update post_view.rs
* Update triggers.sql
* Update triggers.sql
* Update triggers.sql
* Update comment_reply_view.rs
* Update person_mention_view.rs
* Update person_mention_view.rs
* Update comment_reply_view.rs
* Update uplete.rs
* start removing post_id column
* Update down.sql
* Update schema.rs
* Update comment.rs
* Update comment.rs
* Update comment.rs
* Update schema.rs
* Update comment.rs
* Update like.rs
* Update comment.rs
* Update up.sql
* Update down.sql
* Update down.sql
* Update up.sql
* Update up.sql
* Update down.sql
* Update comment.rs
* Update vote_view.rs
* Update vote_view.rs
* Update comment_aggregates.rs
* Update person_aggregates.rs
* Update comment_view.rs
* Update vote_view.rs
* Update mod.rs
* Update create.rs
* Update comment.rs
* Update community.rs
* Update community.rs
* Update up.sql
* Update uplete.rs
* Update uplete.rs
* revert to UpleteCount
* Update comment.rs
* Update traits.rs
* Update comment.rs
* Update community.rs
* Update community_block.rs
* Update community.rs
* Update instance_block.rs
* Update instance.rs
* Update community_block.rs
* Update person.rs
* Update person_block.rs
* Update person.rs
* Update person_block.rs
* Update person.rs
* Update instance.rs
* Update instance_block.rs
* Update instance.rs
* Update person.rs
* Update post.rs
* Update comment.rs
* Update community.rs
* Update person.rs
* Update post_view.rs
* Update comment.rs
* reduce diff
* revert some changes in views
* Update post_view.rs
* Update comment.rs
* Update post.rs
* fix missing cfg_attr
* rewrite uplete
* Update Cargo.toml
* Update Cargo.toml
* Update uplete.rs
* add `pub` to structs that appear in trait bounds
* optional = true
* Update uplete.rs
* Update community.rs
* Update comment.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* something is wrong with me
* use new uplete function everywhere
* fmt
* fmt
* Keep post_id when comment_actions::liked is not null
* Update up.sql
* Update up.sql
* clean up up.sql
* clean up down.sql
* fix
* Update person_aggregates.rs
* fmt
* Update uplete.rs
* fmt
* Update uplete.rs
* Update community.rs
* Update uplete.rs
* Update local_user.rs
* fmt
* fix
* fix
* fmt
* improve uplete api
* Update uplete.rs
* fix
* fix
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* fix
* fix test
* fix db_views_actor imports
* fix uplete import in post_view test
* rerun ci
* fix AllNull syntax error
* fix DynColumn
* Fix rust syntax
* fmt
* fix iter
* pain
* Update community_moderators.rs
* Update community_moderator_view.rs
* Update uplete.rs
* Fix mistake found by chatgpt
* revert debugging stuff, change migration date, refactor constraint
* Update down.sql
* Update down.sql
* fmt
* make things added to db_schema::utils more understandable
* update rust version for woodpecker
* finish merge
* Fix index that checked read_comments twice instead of also checking read_comments_amount
* fix
* uplete: test_count, test_generated_sql_setting_one_column_null, test_count_methods
* refactor uplete sql test
* test setting both columns to null in uplete
* make AllNull generic
* test AllNull
* Merge remote-tracking branch 'upstream/main' into smoosh-tables-together
---------
Co-authored-by: phiresky <phireskyde+git@gmail.com>
2024-11-11 11:34:10 +01:00
Dessalines
39eeb2cbb3
Allow disabling private messages. Fixes #3640 ( #4094 )
...
* Allow disabling private messages. Fixes #3640
* Fix typo.
* Fixing local user check in apub code.
* Removing pointless local check.
2024-11-07 22:16:28 -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
df664d9d9a
Upgrading ts_rs to 10.0.0 ( #5163 )
...
* Upgrading ts_rs to 10.0.0
* Adding ts_option directives, and woodpecker test.
* Fixing ts_options.
2024-11-06 15:50:13 +01:00
Dessalines
298c8fa521
Add filter to hide posts with comments. ( #5158 )
...
* Add filter to hide posts with comments.
- Useful for Q/A type communities.
- Fixes #1106
* Changing to no_comments_only
2024-11-05 12:09:25 -05:00
6a7b1d417f
Finishing up post body mentions.
2024-11-04 08:48:29 -05:00
Dessalines
18bf9843bc
Fixing LemmyError imports. ( #5157 )
2024-11-04 10:44:58 +01:00
5b87cd8153
Renaming person_mention to person_comment_mention.
2024-11-02 13:04:31 -04:00
flamingos-cant
e8875dec99
Append attachments to comments ( #5143 )
...
* Append attachments to comments.
* fmt
* Proxy images + use newlines for separation
* Use md for plain links
* Use proxy_image_link directly
2024-10-31 08:13:42 -04:00
Dessalines
cdc1cf3bf7
Adding community description in addition to sidebar, like site. ( #5120 )
...
* Adding community description in addition to sidebar, like site.
- Also made changes to lemmy's group apub to be similar to its site,
which uses content for the sidebar, and summary for the short
description.
- Fixes #5078
* Fixing tests.
* Remove comment.
* Fix name for description checker.
2024-10-28 11:54:36 -04:00
Dessalines
d6d01a3b62
Adding cargo shear ( #5139 )
...
* Adding cargo shear (fail check)
* Running cargo shear.
* Fixing another missing.
* Removing cargo-machete in favor of cargo-shear
2024-10-28 11:41:09 -04:00
f05afead02
Remove individual user/community inboxes ( #5124 )
...
* Remove endpoints for individual community/user inboxes
fixes #4147
fixes #3928
* Remove shared_inbox_url columns
* fmt
2024-10-26 14:54:29 -04:00