Nutomic
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
Nutomic
556358f53e
Dont sanitize RSS content manually ( fixes #5171 ) ( #5174 )
2024-11-18 09:58:31 -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
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
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
Nutomic
322538b0ce
Support markdown sub/superscript, use external crate for spoilers ( #5135 )
...
* Use external crate for spoiler tags
* Also add other plugins
* fix test
2024-10-25 17:06:37 -04:00
renovate[bot]
a2c24def87
Update Rust crate reqwest to v0.12.8 ( #5082 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 00:39:06 -04:00
renovate[bot]
435b207105
Update Rust crate serde_with to v3.11.0 ( #5095 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 17:37:05 -04:00
renovate[bot]
5008aa7c76
Update Rust crate serde_with to v3.10.0 ( #5094 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:57:17 -04:00
renovate[bot]
f17cd0a6f9
Update Rust crate regex to v1.11.0 ( #5093 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:22:14 -04:00
renovate[bot]
cfe2d1b18d
Update Rust crate actix-web-prom to 0.9.0 ( #5091 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 12:55:45 -04:00
renovate[bot]
6e5130378d
Update rust-futures monorepo to v0.3.31 ( #5090 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 10:30:00 -04:00
renovate[bot]
4012e35081
Update Rust crate rustls to v0.23.14 ( #5083 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 03:30:13 -04:00
renovate[bot]
2fed70f692
Update Rust crate html2text to v0.12.6 ( #5081 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 00:26:23 -04:00
renovate[bot]
f39b0992c5
Update Rust crate clap to v4.5.19 ( #5080 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 22:16:34 -04:00
Nutomic
7c2445efe7
Resolve links to remote posts into local URL ( #5057 )
...
* move code to new file
* rewrite markdown links (fixes #2987 )
* add missing file
* add helper fn
* also convert post.url
* simplify search.rs
* clippy
* also rewrite user/community links in markdown
* Call from apub handlers, cleanup
* no network requests in test
* clippy
* fix tests
* serial
* test
* no mut
* add api test
* fix api test
2024-10-03 08:24:05 -04:00
renovate[bot]
1518aed929
Update Rust crate async-trait to v0.1.83 ( #5065 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 07:04:11 -04:00
renovate[bot]
8d269fc08e
Update Rust crate tracing-actix-web to v0.7.13 ( #5070 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:48:52 -04:00
renovate[bot]
12275da318
Update Rust crate sitemap-rs to v0.2.2 ( #5069 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:27:01 -04:00
renovate[bot]
777992e829
Update Rust crate reqwest to v0.12.8 ( #5068 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 22:04:24 -04:00
renovate[bot]
0fcbd25ad5
Update Rust crate clap to v4.5.18 ( #5066 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 21:42:11 -04:00
Nutomic
9eee61dd06
Post scheduling ( fixes #234 ) ( #5025 )
...
* Post scheduling (fixes #234 )
* clippy
* replace map_err with inspect_err
* ignore unpublished posts in read queries
* add api test
* fmt
* add some checks
* address some review comments
* allow updating schedule time
* rewrite scheduled task
* fmt
* machete
* compare date in sql, more filters
* check for community ban in sql
* remove api test (scheduled task only runs every 10 mins)
* remove mut
* add index
* remove Post::read impl
* fmt
* fix
* correctly handle changes to schedule time
* normal users can only schedule up to 10 posts
2024-09-24 05:39:40 -04:00
Nutomic
ad75192bae
Remove TypedBuilder in favor of derive_new ( fixes #4863 ) ( #5020 )
...
* Remove TypedBuilder in favor of derive_new (fixes #4863 )
* fix
* fix
2024-09-20 08:15:25 -04:00
privacyguard
b26aaac523
SSO Support ( #4881 )
...
* Added OAUTH2 OIDC support
* Fixes and improvements based on review feedback
* use derive_new::new instead of TypedBuilder
* merge migrations into a single file
* fixes based on review feedback
* remove unnecessary hostname_ui config
* improvement based on review feedback
* improvements based on review feedback
* delete user oauth accounts at account deletion
* fixes and improvements based on review feedback
* removed auto_approve_application
* support registration application with sso
* improvements based on review feedback
* making the TokenResponse an internal struct as it should be
* remove duplicate struct
* prevent oauth linking to unverified accounts
* switched to manually entered username and removed the oauth name claim
* fix cargo fmt
* fix compile error
* improvements based on review feedback
* fixes and improvements based on review feedback
---------
Co-authored-by: privacyguard <privacyguard@users.noreply.github.com>
2024-09-18 14:52:33 +02:00
Dessalines
5febf2b8fb
Adding clearurls crate to clean tracking params from links and markdown. ( #5018 )
...
* Adding clearurls crate to clean tracking params from links and markdown.
- Thanks to @jenrdikw for creating this
- Fixes #4905
* Upgrading to new version of clearurls
* Fix clippy
2024-09-16 11:15:41 -04:00
Dessalines
ff939e04fd
Removing embedded pict-rs. ( #5023 )
...
Some reasons for removing this:
- Even as an optional dependency, it locks us to many specific versions
of rust deps.
- Pict-rs is a large app that can and should be run in on its own.
- Violates the philosophy of separation of concerns.
2024-09-16 11:08:18 -04:00
Dessalines
987e3f8026
Upgrading webmention to 0.6.0, removes native-tls ( #4976 )
2024-09-16 10:11:02 +02:00
Nutomic
dea6ee462c
Upgrade http crate ( #5006 )
...
* 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
* Upgrade http and opentelemetry crates
* more fixes
* cleanup
* use release
* upgrade more deps
2024-09-12 05:49:09 -04:00
Sander Saarend
fbb3960c36
Image proxy fixes ( #4871 )
...
* Fix remote image urls
* Remove unnecessary URL decode
* Removing the proxy changes.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-09-11 10:11:25 -04:00
Nutomic
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
renovate[bot]
f98b15511a
chore(deps): update rust crate derive-new to 0.7.0 ( #4995 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-01 16:47:16 +00:00
Dessalines
d479bb96c6
Version 0.19.6-beta.7
2024-08-27 16:32:08 -04:00
Dessalines
2913cdf556
Version 0.19.6-beta.6
2024-08-19 19:44:13 -04:00
Dessalines
6b9e5ecb48
Version 0.19.6-beta.5
2024-08-15 08:50:27 -04:00
Richard Schwab
63a686d390
Approve applications in transaction ( #4970 )
...
* Implement tests for registration application count and list api
* Use transaction when approving applications to ensure consistent approval state
2024-08-13 16:18:26 -04:00
Dessalines
128e78f7c2
Version 0.19.6-beta.4
2024-08-08 20:01:58 -04:00
Dessalines
88fbcea246
Version 0.19.6-beta.3
2024-08-06 10:32:41 -04:00
Dessalines
f8c7375731
Upgrading deps. ( #4955 )
2024-08-01 17:04:28 -04:00
renovate[bot]
c0f3dff5cf
chore(deps): update rust crate mockall to 0.13.0 ( #4946 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 13:59:40 -04:00
renovate[bot]
79fddc965f
chore(deps): update rust crate typed-builder to 0.19.0 ( #4949 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 16:22:55 +00:00
renovate[bot]
2318473456
fix(deps): update rust crate console-subscriber to 0.4.0 ( #4944 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 10:52:40 -04:00
renovate[bot]
4e48054b17
chore(deps): update rust crate tokio to v1.39.2 ( #4935 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 14:50:52 +00:00
Dessalines
6c11c013b0
Version 0.19.6-beta.2
2024-08-01 08:29:22 -04:00
renovate[bot]
0bd0c0f11b
chore(deps): update rust crate clap to v4.5.13 ( #4932 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:38:06 +00:00
renovate[bot]
c6db2ad9b7
chore(deps): update rust crate serde_json to v1.0.121 ( #4933 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 21:46:20 -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
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
Nutomic
572a42d880
Change type of concurrent sends in config ( #4914 )
2024-07-22 09:58:50 -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