Commit Graph

85 Commits (6872554c4795560249dde4301b22f14c4477ee2a)

Author SHA1 Message Date
Dessalines ddf4a667b1 ~80% done 4 years ago
Felix Ableitner 3ffae1f5b8 Allow adding remote users as community mods (ref #1061) 4 years ago
Dessalines 134fece36d
Adding a password length check to other API actions. (#1474)
* Adding a password length check to other API actions.

- Fixes #1473

* Fixing comment.
4 years ago
Andrew Yoon e78ba38e94
Use URL type in most outstanding struct fields (#1468)
* Use URL type in most outstanding struct fields

This fixes all known remaining cases where url fields are stored as
plain strings, with the exception of form fields where empty strings
are used as sentinels (see `diesel_option_overwrite_to_url`).

Tested for regressions in the federated docker setup attempting to
exercise all changed fields, including through apub federation.

Fixes #1385

* Add migration to fix blank-string post.url values to be null

This also then fixes #602

* Address review feedback

- Fixed some unwraps and err message formatting
- Bumped the `url` library to 2.2.1 to fix a bug with serde error
  messages
- Add unit tests for the two diesel option override functions
- Fix migration teardown by adding a no-op

* Rename lemmy_db_queries::Url to lemmy_db_queries::DbUrl

* fix compile error

* box PostOrComment variants
4 years ago
Dessalines 462c4a2954
Rewrite settings implementation. Fixes #1270 (#1433)
* A first attempt at using deser-hjson. Fixes #1270

* Trying to fix tests, try 1

* Trying to fix tests, try 2

* A few fixes to deser_hjson

- Removing unwrap_or_defaults, using impl functions.
- Reorganized settings

* Make clippy happy

* hjson list strings must be quoted.

* Adding support for env vars.

* Moving to structs and defaults file.

* Moving settings default and struct.
4 years ago
Felix Ableitner 3bdd78f341 Rename `lemmy_structs` to `lemmy_api_structs` 4 years ago
Dessalines a869a2823b Still continuing on.... 4 years ago
Andrew Yoon 600ae662a5 Support plain `cargo test` and disable unused doctests for speed
Since DB tests execute diesel migrations automatically, concurrent
execution causes flaky failures from simultaneous migrations. This can
be worked around using `cargo test --workspace -- --test-threads=1`,
which is what the CI config does, but this is not intuitive for
newcomer developers and unnecessarily slows down the test suite for
the majority of tests which are safe to run concurrently. This fixes
this issue by integrating with the small test crate `serial_test` and
using it to explicitly mark DB tests to run sequentially while
allowing all other tests to run in parallel.

Additionally, this greatly improves the speed of `cargo test` by
disabling doc-tests in all crates, since these are aren't currently
used and cargo's doc-test pass, even when no doc-tests exist, has
significant overhead. On my machine, this change significantly
improves test suite times by about 85%, making it much more practical
to develop with tools like `cargo watch` auto-running tests.
4 years ago
Felix Ableitner 3141ad31de Remove categories (fixes #1429) 4 years ago
Felix Ableitner 8096765f0e Fix clippy error upper_case_acronyms 4 years ago
Dessalines bcc8dae16b Fixing deploy version. 4 years ago
Dessalines a806493bc2 Version 0.9.8 4 years ago
Felix Ableitner 3d400ca21d Hide followed communities, except for own user (fixes #1303) 4 years ago
Dessalines acadf0289e Fixing reason lengths to char counts. 4 years ago
Felix Ableitner 999d9f4d6c Move routes into separate crate to speed up compilation 4 years ago
Dessalines 5656db3e3d Version 0.9.7 4 years ago
Dessalines f198f281cf Version 0.9.6 4 years ago
Dessalines 4864f80656 Fixing community search not using auth. Fixes #1411 4 years ago
Dessalines 8a7e50381f Version 0.9.5 4 years ago
nutomic 1a4e35eb50 Store activitypub endpoints in database (#162)
Address review comments

Store Activitypub urls in database (fixes #808)

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/162
Co-Authored-By: nutomic <nutomic@noreply.yerbamate.ml>
Co-Committed-By: nutomic <nutomic@noreply.yerbamate.ml>
4 years ago
Dessalines 9415bec557 Version 0.9.4 4 years ago
Dessalines 1857f02af8 Moving back tokio and reqwest. 4 years ago
Dessalines 10f0b3b877 Trying to upgrade lemmys deps. 4 years ago
Dessalines 0be9b5bddb
Add allowed and blocked instances to the federated_instances response. (#1398)
- Fixes #1315
4 years ago
Nutomic c8254dc0a8
Merge pull request #1399 from LemmyNet/dont_let_banned_users_follow
Make sure banned users cant subscribe, and the ban unsubs them. Fixes…
4 years ago
Dessalines cd08fdf76f Make sure banned users cant subscribe, and the ban unsubs them. Fixes #1324 4 years ago
Dessalines aecb2411d8 Add check for parent comment. Fixes #1390 4 years ago
Dessalines 3a05817b41 Version 0.9.3 4 years ago
Dessalines 2322534648 Version 0.9.2 4 years ago
Dessalines e6a16f08a3 Version 0.9.1 4 years ago
Nutomic 3d578f9df2
Use Url type for ap_id fields in database (fixes #1364) (#1371) 4 years ago
Dessalines cf911c023d
Add listing type to list communities (#1380)
* Adding listing type to ListCommunities. Fixes #1379

* Upgrading lemmy-js-client.
4 years ago
Dessalines 1addbe361a Version 0.9.0 4 years ago
Dessalines 97617d699d
Docker manifest arm amd64 deploy (#1367)
* A first try at docker manifest. 1.

* Fixing api version location

* Version 0.9.0-rc.13

* Test docker.

* Test docker 2.

* Test docker 3.

* Test docker 4.

* Test docker 5.

* Test docker 6.

* Test docker 7.

* Test docker 8.

* Test docker 9.

* Test docker 10.

* Test docker 11.

* Test docker 12.

* Version 0.9.0-rc.14

* Test docker 13.

* Test docker 14.

* Version 0.9.0-rc.15

* Test docker 15.

* Version 0.9.0-rc.16

* Test docker 16.

* Version 0.9.0-rc.17
4 years ago
Felix Ableitner 3b64c58198 Move most code into crates/ subfolder 4 years ago