c90ee3094d
Remove opentelemetry ( #4741 )
...
* Remove opentelemetry
* remove unused deps, use backtrace
* always print db migration messages regardless of log level (fixes #4725 )
* fix ci
* Remove useless root span builder
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-09-10 13:36:03 -04:00
Dessalines
c8ad0f2d09
Remove pointless local_user_id from LocalUserVoteDisplayMode ( #4890 )
...
- Fixes #4866
2024-09-10 12:39:45 +02:00
Dull Bananas
ecb700ec6e
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-08-21 14:19:06 -07:00
Richard Schwab
76a2c6e79b
Fix scheduled task to delete users with denied applications ( #4907 )
...
After an admin interacted with an application it can only be accepted or denied.
Denial reasons are not required by Lemmys backend, even though they're mandatory in Lemmy-UI, and therefore they are not a reliable indicator of an application being denied.
This aligns the cleanup logic with the logic used for the unread application count.
2024-08-13 18:54:56 -04:00
Dessalines
33fd31754a
Adding a URL max length lemmy error. ( #4960 )
...
* Adding a URL max length error.
- Also increasing the post.url max length to 2000 (seems standard)
- I ran into this when fixing torrent support, which often use longer
urls.
* Fixing sql_format.
2024-08-04 09:45:53 -04:00
Dessalines
60a7829638
Adding deny unimplemented to clippy lints. ( #4922 )
...
* Adding deny unimplemented to clippy lints.
- Context: #4782
* Update crates/apub/src/fetcher/site_or_community_or_user.rs
Thanks, I like that better.
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/apub/src/fetcher/search.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Running fmt.
* Adding debug_assert(false)
* Removing some commands.
* Format.
* Remove todo.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-07-31 20:28:41 -04:00
SleeplessOne1917
1ef375e5c3
Replace 3rd party once_cell crate with recently stabilized standard library API ( #4919 )
...
* Replace 3rd party once_cell crate with recently stabilized standard library API
* Bump CI rust version
2024-07-30 10:11:39 -04:00
Dull Bananas
84b161ddd6
fix
2024-07-26 20:05:39 +00:00
Dull Bananas
4428c61bea
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-07-26 19:50:46 +00:00
Dessalines
9738d87f38
Add the ability to fetch a registration application by person_id. ( #4913 )
...
* Add the ability to fetch a registration application by person_id.
- Fixes #4908
* Cleaning up PR.
2024-07-23 19:01:24 -04:00
SleeplessOne1917
db390a2f3a
Make eligible enums convertable to static strs ( #4915 )
...
* Make eligible enums convertable to static strs
* Run cargo fmt
* Remove unnecessary derives
2024-07-23 11:05:19 -04:00
Darren M
3d80ac2ebb
Fix tls pool ( #4910 )
...
* Cargo: add rustls as a dependency
* install tls provider in main
* Cargo: re-define rustls dependency
2024-07-21 22:33:42 -04:00
phiresky
a08642f813
federation: parallel sending per instance ( #4623 )
...
* federation: parallel sending
* federation: some comments
* lint and set force_write true when a request fails
* inbox_urls return vec
* split inbox functions into separate file
* cleanup
* extract sending task code to separate file
* move federation concurrent config to config file
* off by one issue
* improve msg
* fix both permanent stopping of federation queues and multiple creation of the same federation queues
* fix after merge
* lint fix
* Update crates/federate/src/send.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* comment about reverse ordering
* remove crashable, comment
* comment
* move comment
* run federation tests twice
* fix test run
* prettier
* fix config default
* upgrade rust to 1.78 to fix diesel cli
* fix clippy
* delay
* add debug to make localhost urls not valid in ap crate, add some debug logs
* federation tests: ensure server stop after test and random activity id
* ci fix
* add test to federate 100 events
* fix send 100 test
* different data every time so activities are distinguishable
* allow out of order receives in test
* lint
* comment about https://github.com/LemmyNet/lemmy/pull/4623#discussion_r1565437391
* move sender for clarity, add comment
* move more things to members
* update test todo comment, use same env var as worker test but default to 1
* remove else below continue
* some more cleanup
* handle todo about smooth exit
* add federate inboxes collector tests
* lint
* actor max length
* don't reset fail count if activity skipped
* fix some comments
* reuse vars
* format
* Update .woodpecker.yml
* fix recheck time
* fix inboxes tests under fast mode
* format
* make i32 and ugly casts
* clippy
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-07-21 11:50:50 -04:00
藍+85CD
847c01f348
refactor!: use rustls instead of native-tls ( #4901 )
...
* refactor(utils): remove apub
* refactor(utils): remove apub
* refactor(utils): remove openssl
* refactor(utils): remove openssl
* Use rustls instead of native-tls.
* refactor(utils): remove apub
* refactor(utils): remove apub
* refactor(utils): remove openssl
* refactor(utils): remove openssl
* Use rustls instead of native-tls.
* Upping activitypub_federation dep
* Using git dep of webmention.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-07-18 08:40:43 -04:00
Dessalines
ba044c7d98
Adding checks for higher admin and mod. ( #4860 )
...
* Adding checks for higher admin and mod.
* Adding admin/mod checks for ban and comment removal.
* Combining mod or admin check with an SQL union.
* Making community ban or add mod also allow higher admins.
* Making sure remove post also checks higher mods or admins.
* Add unit test for is_higher_mod_or_admin_check
* Fixing comment.
* Addressing PR comments.
* Get rid of pointless wrapper functions, return lemmyresult directly.
2024-07-16 12:22:47 +02:00
Dessalines
32cee9cbca
Fixing not being able to create comments on local community posts. ( #4854 )
...
* Fixing not being able to create comments on local community posts.
- This was caused by not passing my_person_id into various
`CommentView::read` functions.
- Fixes #4853
* Refactoring views to use local_user, rather than person
* Addressing PR comments.
* Fixing API tests.
2024-07-07 12:28:42 -04:00
Dull Bananas
de0163554b
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-07-03 02:32:33 +00:00
dullbananas
78702b59fd
Use trigger to generate apub URL in insert instead of update, and fix query planner options not being set when TLS is disabled ( #4797 )
...
* Update create.rs
* Update utils.rs
* Update utils.sql
* Update triggers.sql
* Update utils.sql
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Update create.rs
* Create up.sql
* Update up.sql
* Update triggers.sql
* Update utils.rs
* stuff
* stuff
* revert some changed files
* Revert "revert some changed files"
This reverts commit 028eabb4bd
.
* revert the correct files
* partial reverts
* migration, tests, fix establish_connection
* lint
* pg_format
2024-07-02 11:23:21 -04:00
dullbananas
fd58b4f809
Exponential controversy rank ( #4872 )
...
* Update utils.sql
* add migration
2024-07-02 09:40:18 -04:00
Dessalines
a7c39226e2
Remove unused PersonBlockId. ( #4880 )
...
- Fixes #4879
2024-07-02 09:39:37 -04:00
Dull Bananas
7734ba47a1
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-06-25 19:42:41 +00:00
Dessalines
6d8d23130d
Adding an image_details table to store image dimensions. ( #4704 )
...
* Adding an image_details table to store image dimensions.
- Adds an image_details table, which stores the height,
width, and content_type for local and remote images.
- For LocalImages, this information already comes back with
the upload.
- For RemoteImages, it calls the pictrs details endpoint.
- Fixed some issues with proxying non-image urls.
- Fixes #3328
- Also fixes #4703
* Running sql format.
* Running fmt.
* Don't fetch metadata in background for local API requests.
* Dont export remote_image table to typescript.
* Cleaning up validate.
* Dont proxy url.
* Fixing tests, fixing issue with federated thumbnails.
* Fix tests.
* Updating corepack, fixing issue.
* Refactoring image inserts to use transactions.
* Use select exists again.
* Fixing imports.
* Fix test.
* Removing pointless backgrounded metadata generation version.
* Removing public pictrs details route.
* Fixing clippy.
* Running prettier.
* A few more fixes.
* Moving diesel schema check back down.
* Addressing PR comments.
* Changing back request head to get.
* Fixing lockfile.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-20 12:44:06 +02:00
Dessalines
63a824a2ed
Fixing TLS connection by installing provider. ( #4844 )
...
- Fixes #4795
2024-06-18 09:59:24 -04:00
dullbananas
42a6d8ab0f
Fix not-equals check in post aggregates update trigger ( #4837 )
...
* Fix not-equals check in post aggregates update trigger
Should fix #4836
* Create up.sql
* Create down.sql
* Update down.sql
2024-06-17 15:25:54 -04:00
dullbananas
6497ec519e
Refactor LocalUser settings conditions in database views ( #4746 )
...
* Create viewer.rs
* Rename viewer.rs to viewer.rs
* Update viewer.rs
* Update post_view.rs
* Update distinguish.rs
* Update like.rs
* Update viewer.rs
* Update list_comment_likes.rs
* Update like.rs
* Update save.rs
* Update like.rs
* revert changes in api crate
* Update post_view.rs
* Update post_view.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update comment_view.rs
* Update post_view.rs
* Update viewer.rs
* Update post_view.rs
* Update community_view.rs
* Update local_user_view.rs
* Update viewer.rs
* Update community_view.rs
* Update viewer.rs
* Update lib.rs
* Update comment_view.rs
* Update post_view.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update local_user_view.rs
* Update viewer.rs
* Update viewer.rs
* Update local_user_view.rs
* Update community_view.rs
* Update viewer.rs
* Update crates/db_schema/src/viewer.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update post_view.rs
* Update community_view.rs
* Update comment_view.rs
* Update viewer.rs
* Update post_view.rs
* Update save.rs
* Update resolve_object.rs
* Update viewer.rs
* Update save.rs
* Update resolve_object.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update local_user_view.rs
* Update post_view.rs
* Update viewer.rs
* Update comment_view.rs
* Update post_view.rs
* Update community_view.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Update viewer.rs
* Some additions to localuser DB view helpers. (#39 )
* Some additions to localuser DB view helpers.
- Getting rid of generics.
- Passing in only LocalUser to views.
* Formatting fixes.
* Getting rid of unecessary as_refs
* Fixing clippy.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-06-14 21:51:24 -04:00
dullbananas
99160228ae
Remove unimplemented
in <Comment as Crud>::create
( #4796 )
...
* Remove `unimplemented` in `<Comment as Crud>::create`
* Update comment.rs
2024-06-14 10:40:57 +02:00
dullbananas
1e11faf741
Improve comment in triggers.sql ( #4789 )
...
* Clarified existing info
* Added prohibition of inconsistent update order
2024-06-07 07:42:34 -04:00
Dessalines
16a82862b8
Allow empty string to clear URL-type DB fields. ( #4780 )
...
* Allow empty string to clear URL-type DB fields.
- To address difficulties with clearing URL-type fields like
avatars, banners, site icons, this PR turns the URL type form
fields into strings.
- This allows an empty string to be used as a "clear data", as
in the case with the regular text form fields.
- Also includes various cleanups.
- Fixes #4777
- Context: #2287
* Fixing comment.
* Use Option<&str> and deref.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-06-06 09:55:08 -04:00
dullbananas
79e6dbf0de
Remove PersonInsertForm builder ( #4779 )
...
* Update session_middleware.rs
* Update private_message_report_view.rs
* Update session_middleware.rs
* Update private_message_view.rs
* Update private_message.rs
* Update registration_application_view.rs
* Update actor_language.rs
* Update vote_view.rs
* Update code_migrations.rs
* Update comment_aggregates.rs
* Update person_view.rs
* Update user_settings_backup.rs
* Update person.rs
* Update create.rs
* Update comment_view.rs
* Update moderator.rs
* Update site_aggregates.rs
* Update claims.rs
* Update community_aggregates.rs
* Update post_report.rs
* Update person_mention_view.rs
* Update community_view.rs
* Update comment_report_view.rs
* Update post_report_view.rs
* Update community_moderators.rs
* Update comment.rs
* Update person_aggregates.rs
* Update comment_reply_view.rs
* Update password_reset_request.rs
* Update post_aggregates.rs
* Update community.rs
* Update main.rs
* Update post.rs
* Update person.rs
* Update person.rs
* Update claims.rs
* Update person.rs
* Update create.rs
* Update user_settings_backup.rs
* Update community_moderators.rs
* Update main.rs
* Update comment_aggregates.rs
* Update community_aggregates.rs
* Update person.rs
* Update Cargo.toml
* Update Cargo.toml
* Update person.rs
* fix
* Update code_migrations.rs
* fix submodule
* Update person.rs
2024-06-06 08:29:18 -04:00
Dessalines
e8cfb5665f
When banning from local communities, make sure they aren't deleted or removed. ( #4784 )
...
- This is causing some federation issues.
- Context: #4782
2024-06-05 18:59:46 -04:00
dullbananas
a242333701
fix strip_prefix order
2024-05-28 06:57:32 -07:00
dullbananas
b17634034f
rerun ci
2024-05-28 06:18:39 -07:00
dullbananas
45562bfb88
rerun ci
2024-05-27 21:03:28 -07:00
dullbananas
ce1cf3efde
fix
2024-05-27 20:43:42 -07:00
dullbananas
0b8790ce1d
Merge branch 'main' into migration-runner
2024-05-27 20:24:33 -07:00
dullbananas
3daa0d6a21
fmt
2024-05-27 20:22:16 -07:00
dullbananas
d592e0f416
re-attempt checking character after skipped trigger name, and make code less confusing
2024-05-27 20:18:10 -07:00
Dull Bananas
1a18350aca
fmt
2024-05-27 23:36:49 +00:00
Dull Bananas
b6102dcbf2
fix
2024-05-27 23:35:43 +00:00
dullbananas
120be51ace
exclude views and fast tables
2024-05-27 15:26:58 -07:00
af034f3b5e
Unit tests and cleanup for outgoing federation code ( #4733 )
...
* test setup
* code cleanup
* cleanup
* move stats to own file
* basic test working
* cleanup
* processes test
* more test cases
* fmt
* add file
* add assert
* error handling
* fmt
* use instance id instead of domain for stats channel
2024-05-27 09:34:58 -04:00
dullbananas
db856efcdb
Merge branch 'main' into migration-runner
2024-05-23 15:39:26 -07:00
dullbananas
56e22b032b
Update diff_check.rs
2024-05-23 14:48:15 -07:00
dullbananas
d57d29392e
try to fix env var
2024-05-23 14:11:58 -07:00
d8dc38eb06
Upgrade dependencies ( #4740 )
2024-05-23 10:55:20 -04:00
dullbananas
0a02ceb294
fmt
2024-05-23 06:48:51 -07:00
dullbananas
3f3b8e31ca
fmt
2024-05-23 06:48:05 -07:00
dullbananas
833a25012c
Merge branch 'main' into migration-runner
2024-05-23 06:45:47 -07:00
dullbananas
64827a11fb
re-run ci
2024-05-23 06:44:09 -07:00
c96017c009
Configure max comment width in clippy ( #4738 )
...
* Configure max comment width in clippy
* update default config
2024-05-23 08:46:26 -04:00
dullbananas
f0b2f0d1e4
Update diff_check.rs
2024-05-22 14:31:55 -07:00
dullbananas
e5bc0bba4b
clippy
2024-05-22 14:23:43 -07:00
dullbananas
c7babd748a
fmt
2024-05-22 13:47:25 -07:00
dullbananas
7716c9e16d
fmt
2024-05-22 13:43:08 -07:00
dullbananas
f1142e0c72
Merge branch 'main' into migration-runner
2024-05-22 13:41:25 -07:00
Dull Bananas
d71cfaa503
stuff
2024-05-22 20:34:35 +00:00
Dessalines
7d7cd8ded4
Dont show replies / mentions from blocked users. Fixes #4227 ( #4727 )
...
* Dont show replies / mentions from blocked users. Fixes #4227
* Adding unit tests for reply and mention views.
- Also cleaned up some unwraps in the tests.
* Add allow deprecated to pass clippy for deprecated wav crate.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 08:50:26 -04:00
Dessalines
55f84dd38a
Fixing proxy images ( #4722 )
...
* Adding an image_details table to store image dimensions.
- Adds an image_details table, which stores the height,
width, and content_type for local and remote images.
- For LocalImages, this information already comes back with
the upload.
- For RemoteImages, it calls the pictrs details endpoint.
- Fixed some issues with proxying non-image urls.
- Fixes #3328
- Also fixes #4703
* Running sql format.
* Running fmt.
* Don't fetch metadata in background for local API requests.
* Dont export remote_image table to typescript.
* Cleaning up validate.
* Dont proxy url.
* Fixing tests, fixing issue with federated thumbnails.
* Fix tests.
* Updating corepack, fixing issue.
* Refactoring image inserts to use transactions.
* Use select exists again.
* Fixing imports.
* Fix test.
* Removing pointless backgrounded metadata generation version.
* Removing public pictrs details route.
* Fixing clippy.
* Fixing proxy image fetching. Fixes #4703
- This extracts only the proxy image fixes from #4704 , leaving off
thumbnails.
* Fix test.
* Addressing PR comments.
* Address PR comments 2.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-05-22 10:28:47 +02:00
Dull Bananas
5fca4ea918
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-05-21 20:20:14 +00:00
Dull Bananas
4d427b2f0c
use advisory lock
2024-05-21 20:19:34 +00:00
Dull Bananas
cf5afc9fb3
stuff
2024-05-21 19:38:11 +00:00
4ffaa93431
Dont allow reusing password reset token, use normal rate limit ( #4719 )
...
* Dont allow reusing password reset token, use normal rate limit
* fix
2024-05-21 14:46:49 -04:00
Dull Bananas
6eb8d046fa
finish fixing migrations
2024-05-20 21:21:48 +00:00
Dull Bananas
5596cb79cb
improve diff check
2024-05-20 21:15:08 +00:00
Dull Bananas
9a528fb38a
Revert "attempt parallel pg_dump"
...
This reverts commit 592a127954
.
2024-05-20 19:35:55 +00:00
Dull Bananas
47a4c35d8f
Revert "attempt 2"
...
This reverts commit a909d2d643
.
2024-05-20 19:35:50 +00:00
Dull Bananas
a909d2d643
attempt 2
2024-05-20 19:35:42 +00:00
Dull Bananas
592a127954
attempt parallel pg_dump
2024-05-20 18:30:21 +00:00
Dull Bananas
ced9bb5216
stuff
2024-05-20 02:23:56 +00:00
Dull Bananas
7977ee166a
improve diff
2024-05-19 05:19:07 +00:00
Dull Bananas
06b01ffecf
stuff
2024-05-19 04:49:30 +00:00
Dull Bananas
314e744594
ignore column order
2024-05-18 22:38:45 +00:00
Dull Bananas
d18c2c9cf3
timestamp replacement
2024-05-18 21:56:04 +00:00
Dull Bananas
84bf57e1b0
improve schema diff
2024-05-18 18:05:11 +00:00
Dull Bananas
1692fd62b4
diff check
2024-05-18 16:14:55 +00:00
Dull Bananas
8e0bbd61eb
Revert "Revert "diff_checker (partial)""
...
This reverts commit d4bdda5d11
.
2024-05-17 21:21:57 +00:00
Dull Bananas
d4bdda5d11
Revert "diff_checker (partial)"
...
This reverts commit 6709882e14
.
2024-05-17 21:21:25 +00:00
Dull Bananas
6709882e14
diff_checker (partial)
2024-05-17 21:21:19 +00:00
Dull Bananas
1af517f6c4
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-05-17 20:28:03 +00:00
Dull Bananas
5d8af0d476
fix
2024-05-17 20:21:13 +00:00
99aac07714
Mark database fields as sensitive so they dont show up in logs ( #4720 )
...
* Mark database fields as sensitive so they dont show up in logs
* add file
* fix test
* Update crates/apub/src/objects/person.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Update crates/apub/src/objects/community.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Update crates/apub/src/objects/instance.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-05-16 20:41:57 -04:00
723cb549d4
Allow importing partial backup ( fixes #4672 ) ( #4705 )
...
* Allow importing partial backup (fixes #4672 )
* Dont throw error on empty LocalUser::update
* fix tests
2024-05-14 22:37:30 -04:00
Dull Bananas
614e0e59d1
rename to enable_forbid_diesel_cli_trigger
2024-05-13 02:52:27 +00:00
Dull Bananas
27b289c339
add Options with disable_migrations field for test
2024-05-13 02:51:05 +00:00
Dull Bananas
22ac8c5bfc
use trigger on migrations table
2024-05-12 22:10:31 +00:00
Dull Bananas
d0d8139ff0
migriation run command
2024-05-11 20:45:27 +00:00
Dull Bananas
08ae13b877
refactor
2024-05-11 17:55:36 +00:00
Dull Bananas
402ab1414f
fmt
2024-05-11 15:32:00 +00:00
Dull Bananas
e8e354c9b2
finish new implementation of schema_setup::run (not including revert, test, etc.)
2024-05-11 03:36:49 +00:00
dullbananas
c4fc3a8ede
Optimize stuff in attempt to fix high amount of locks, and fix comment_aggregates.child_count ( #4696 )
...
* separate triggers
* auto_explain.log_triggers=on
* Revert "auto_explain.log_triggers=on"
This reverts commit 078b2dbb9b
.
* Revert "separate triggers"
This reverts commit 95600da4af
.
* bring back migration
* re-order statements
* add comment about statement ordering
* no redundant updates
* optimize post_aggregates update in comment trigger
* set comment path in trigger
* update comment_aggregates.child_count using trigger
* move `LEFT JOIN post` to inner query
* clean up newest_comment_time_necro
* add down.sql
2024-05-09 08:18:55 -04:00
Dull Bananas
1aab92cbfa
Merge remote-tracking branch 'upstream/main' into migration-runner
2024-05-09 02:39:01 +00:00
Dull Bananas
691bce0e71
stuff
2024-05-04 14:00:39 +00:00
SleeplessOne1917
b152be7951
Update rustls ( #4690 )
...
* Update rustls
* Format code
2024-05-03 16:06:14 -04:00
beec080274
Testing for federation with NodeBB, make community.followers_url optional ( #4629 )
...
* Testing for federation with NodeBB, make community.followers_url optional
* clippy
2024-04-29 12:34:11 +02:00
Dessalines
492d8f1b01
Fix communities with broken outboxes, and use PostView. Fixes #4658 ( #4668 )
...
* Fix communities with broken outboxes, and use PostView. Fixes #4658
* Fixing tests.
* Dont pass ref and clone.
2024-04-29 12:22:00 +02:00
dullbananas
f2a6d73682
rename
2024-04-28 08:26:28 -07:00
dullbananas
277524298b
Merge branch 'LemmyNet:main' into migration-runner
2024-04-28 07:11:17 -07:00
dullbananas
d3737d4453
Optimize actor_language.rs ( #4612 )
...
* Remove useless transaction in actor_language.rs
* Update actor_language.rs
* site
* community
* Update actor_language.rs
* Update actor_language.rs
* Update actor_language.rs
* Update actor_language.rs
* Update actor_language.rs
2024-04-27 10:59:58 -04:00
dullbananas
ca271eacf5
Update schema.rs
2024-04-20 14:31:33 -07:00
dullbananas
4ba6221e04
Move SQL triggers from migrations into reusable sql file ( #4333 )
...
* stuff
* stuff including batch_upsert function
* stuff
* do things
* stuff
* different timestamps
* stuff
* Revert changes to comment.rs
* Update comment.rs
* Update comment.rs
* Update post_view.rs
* Update utils.rs
* Update up.sql
* Update up.sql
* Update down.sql
* Update up.sql
* Update main.rs
* use anyhow macro
* Create down.sql
* Create up.sql
* Create replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update utils.rs
* Update .woodpecker.yml
* Update sql_format_check.sh
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Create dump_schema.sh
* Update start_dev_db.sh
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* stuff
* Update replaceable_schema.sql
* Update .pg_format
* fmt
* stuff
* stuff (#21 )
* Update replaceable_schema.sql
* Update up.sql
* Update replaceable_schema.sql
* fmt
* update cargo.lock
* stuff
* Update replaceable_schema.sql
* Remove truncate trigger because truncate is already restricted by foreign keys
* Update replaceable_schema.sql
* fix some things
* Update replaceable_schema.sql
* Update replaceable_schema.sql
* Update .woodpecker.yml
* stuff
* fix TG_OP
* Psql env vars
* try to fix combine_transition_tables parse error
* Revert "try to fix combine_transition_tables parse error"
This reverts commit 75d00a4626
.
* refactor combine_transition_tables
* try to fix create_triggers
* fix some things
* try to fix combined_transition_tables
* fix sql errors
* update comment count in post trigger
* fmt
* Revert "fmt"
This reverts commit a5bcd0834b
.
* Revert "update comment count in post trigger"
This reverts commit 0066a4b42b
.
* fix everything
* Update replaceable_schema.sql
* actually fix everything
* refactor create_triggers
* fix
* add semicolons
* add is_counted function and fix incorrect bool operator in update_comment_count_from_post
* refactor comment trigger
* refactor post trigger
* fix
* Delete crates/db_schema/src/utils/series.rs
* subscribers_local
* edit migrations
* move migrations
* remove utils::series module declaration
* fix everything
* stuff
* Move sql to schema_setup dir
* utils.sql
* delete .pg_format
* Update .woodpecker.yml
* Update sql_format_check.sh
* Update .woodpecker.yml
* Merge remote-tracking branch 'upstream/main' into bliss
* fmt
* Create main.rs
* Update lib.rs
* Update main.rs
* Update .woodpecker.yml
* Update main.rs
* Update Cargo.toml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update triggers.sql
* YAY
* Update mod.rs
* Update Cargo.toml
* a
* Update Cargo.toml
* Update Cargo.toml
* Delete crates/db_schema/src/main.rs
* Update Cargo.toml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update utils.sql
* Update utils.sql
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update down.sql
* Update up.sql
* Update triggers.sql
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update triggers.sql
* Update down.sql
* Update .woodpecker.yml
* Update Cargo.toml
* Update .woodpecker.yml
* Update Cargo.toml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update mod.rs
* Update Cargo.toml
* Update mod.rs
* make dump_schema.sh executable
* fix dump_schema.sh
* defer
* diff dumps
* fmt
* Update utils.sql
* Update .woodpecker.yml
* use correct version for pg_dump
* Update .woodpecker.yml
* Update .woodpecker.yml
* change migration date
* atomic site_aggregates insert
* temporarily repeat tests in CI
* drop r schema in CI migration check
* show ReceivedActivity::create error
* move check_diesel_migration CI step
* Update .woodpecker.yml
* Update scheduled_tasks.rs
* Update scheduled_tasks.rs
* update cargo.lock
* move sql files
* move rank functions
* filter post_aggregates update
* fmt
* cargo fmt
* replace post_id with id
* update cargo.lock
* avoid locking rows that need no change in up.sql
* only run replaceable_schema if migrations were run
* debug ci test failure
* make replaceable_schema work in CI
* Update .woodpecker.yml
* remove println
* Use migration revert and git checkout
* Update schema_setup.rs
* Fix
* Update schema_setup.rs
* Update schema_setup.rs
* Update .woodpecker.yml
---------
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-04-17 20:58:44 -04:00