Commit graph

3981 commits

Author SHA1 Message Date
Dessalines c7f4bc7990 Merge branch 'main' into diesel_enums 2023-04-17 14:39:36 -04:00
SleeplessOne1917 f5511cfd25
Make path to local lemmy-ui use correct relative path (#2817) 2023-04-17 13:38:59 -04:00
SleeplessOne1917 922b50fc7c
Add lemmy-bot to README libraries list (#2816) 2023-04-17 13:21:37 -04:00
Dessalines 3021b91876 Fixing federation tests. 2023-04-17 12:54:23 -04:00
Dessalines d2c4a415ce
Merge branch 'main' into diesel_enums 2023-04-16 17:15:14 -04:00
Dessalines 33ba1fc623
Separate federated_instances into its own endpoint. Fixes #1931 (#2813) 2023-04-16 17:00:31 -04:00
6543 90c6dc2732
Use official rust image and clean up Dockerfiles (#2804)
* Add docker/Dockerfile.multiarch

* Update normal Dockerfile to be similar to multiarch one

* docker build run on x86 and arm64 now
manifest not needed, its handled by buildx plugin

* Rename Dockerfile.arm To Dockerfile.debian

* Emulate builder on arm target too

* fix misspell

* Improve Dockerfiles

* naming

* undo multiarchbuild settings as its blocked by a dependeny, see #2806

* Delete Dockerfile.debian
2023-04-16 12:56:12 -04:00
Dessalines 8a2485e8f8 Try using diesel-cli image 13 2023-04-16 10:43:55 -04:00
Dessalines 6d5acf5dad Try using diesel-cli image 12 2023-04-16 10:43:38 -04:00
Dessalines 0d572f4bba Try using diesel-cli image 11 2023-04-16 10:42:09 -04:00
Dessalines 34b6f244fb Try using diesel-cli image 10 2023-04-16 10:41:32 -04:00
Dessalines f5e60ee671 Try using diesel-cli image 9 2023-04-16 10:40:47 -04:00
Dessalines 8f76239838 Try using diesel-cli image 8 2023-04-16 10:40:10 -04:00
Dessalines 00103f34d0 Try using diesel-cli image 7 2023-04-16 10:39:34 -04:00
Dessalines 835599c4e8 Try using diesel-cli image 6 2023-04-16 10:38:35 -04:00
Dessalines a27e54890e Try using diesel-cli image 5 2023-04-16 10:37:35 -04:00
Dessalines 6eba67a880 Try using diesel-cli image 4 2023-04-16 10:36:39 -04:00
Dessalines edbe68e816 Try using diesel-cli image 3 2023-04-16 10:35:54 -04:00
Dessalines 46c171ac0d Try using diesel-cli image 2 2023-04-16 10:33:54 -04:00
Dessalines 7d04f6ed46 Try using diesel-cli image 1 2023-04-16 10:30:41 -04:00
Dessalines d237f11542 Try adding openssl 1. 2023-04-16 10:25:45 -04:00
Dessalines d9e50e6675 Adding woodpecker diesel schema check. 2023-04-16 01:22:51 -04:00
Dessalines 0ed60688dc Fixing RegistrationMode enums 2023-04-16 01:19:42 -04:00
Dessalines 4d11886557 Adding some yalc ignores 2023-04-16 01:05:22 -04:00
Dessalines 9f8c81b57d Using patch file to fix diesel_ltree issue with diesel.toml 2023-04-16 01:05:00 -04:00
Dessalines fbf1846729 Before again. 2023-04-16 01:01:34 -04:00
Dessalines bb8576f32c Before patch. 2023-04-16 00:53:20 -04:00
Dessalines 2a7fdcb0df Remove comment line. 2023-04-16 00:50:28 -04:00
Dessalines e2bfb4c731 Merge branch 'main' into diesel_enums 2023-04-15 20:40:13 -04:00
Dessalines 3fa713f414
Temporary fix for hiding deleted posts. #2624 (#2811) 2023-04-15 20:23:36 -04:00
Dessalines 148f33def5
Leave modded communities on account deletion. Fixes #2560 (#2810) 2023-04-15 19:41:05 -04:00
Dessalines 17432a0423 Fixing unit tests 1. 2023-04-15 15:00:50 -04:00
Dessalines ed7c8e9efa Merge branch 'main' into diesel_enums 2023-04-15 14:38:28 -04:00
Dessalines 38d4429ae7
Adding check to description and body length fields. (#2805)
* Adding check to description and body length fields.

- Also making the checks return `LemmyError`
- Fixes #1747

* Address PR comments.

* PR comments 2
2023-04-15 10:45:11 -04:00
Dessalines 7cece140a2 Adding diesel enums for SortType and ListingType
- Uses diesel-derive-enum.
- Adds diesel.toml , so we can again use the auto-generated schema.rs
- Fixes a lot of DB null issues and column ordering issues.
- Fixes #1136
- Also replaces RegistrationMode boilerplate.
2023-04-15 01:00:35 -04:00
6543 e7a2080f3f
Fix & Optimize CI config (#2802)
* let the clone plugin handle submodules too

* start using yml aliase

* fix publish_to_crates_io

* CI.restart()
2023-04-13 22:33:00 +02:00
Dessalines 63f54a3103
Making the chat server an actor. (#2793)
* Making the chat server an actor.

- Fixes #2778
- #2787

* Forgot to add handlers folder.

* Some cleanup.

* Forgot to remove a comment.

* Address PR comments.

* Using ToString for enum operations.
2023-04-13 06:53:55 -04:00
Nutomic 844cde9db3
Use pretty print for federation json responses (#2801) 2023-04-12 20:17:23 -04:00
Nutomic 9d26ac2c6f
Fix listing type default value (#2796)
* Fix listing type default value

The listing type parameter is only meant for the frontpage, but is
also applied inside of communities. The result is that this call
returns nothing, because it defaults to ListingType::Local:
https://fedibb.ml/api/v3/post/list?community_id=3

It needs to be called like this to get any posts:
https://fedibb.ml/api/v3/post/list?community_id=3&type_=All

This is clearly not expected behaviour, when a community is
specified, the listing type should default to All.

* fix clippy
2023-04-12 10:40:59 -04:00
Dessalines d18bc95b7b
Add woodpecker ci (#2789)
* Adding woodpecker. Try 1

* Adding woodpecker. Try 2

* Adding woodpecker. Try 3

* Adding woodpecker. Try 4

* Adding woodpecker. Try 5

* Adding woodpecker. Try 6

* Adding woodpecker. Try 7

* Adding woodpecker. Try 8

* Adding woodpecker. Try 9

* Adding woodpecker. Try 10

* Adding woodpecker. Try 11

* Adding woodpecker. Try 12

* Adding woodpecker. Try 13

* Adding woodpecker. Try 14

* Adding woodpecker. Try 15

* Adding woodpecker. Try 16

* Adding platform when conditionals.

* Adding platform when conditionals 2.

* Adding woodpecker docker buildx.
2023-04-05 16:29:35 -04:00
Nutomic 3a526b0b7d
Remove unused dependencies (#2795) 2023-04-05 16:29:08 -04:00
Nutomic 165b19e75c
Optimize federated language updates to avoid unnecessary db writes (#2786)
* Optimize federated language updates to avoid unnecessary db writes (fixes #2772)

* fix tests

* fix test, rename functions

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-03-30 11:03:13 -04:00
Helge fdaa2bcf09
Added identifier to context (#2791) 2023-03-26 22:19:10 +02:00
Nutomic 6f513793cb
Activitypub crate rewrite (#2782)
* update activitypub-federation crate to 0.4.0

* fixes

* apub compiles!

* everything compiling!

* almost done, federated follow failing

* some test fixes

* use release

* add code back in
2023-03-21 16:03:05 +01:00
Anon 6bc49bdd70
Add Custom Emojis Support (#2616)
* Add Custom Emojis

* Modify index
2023-03-20 17:32:31 -04:00
Dessalines 66b0ddbbc5
Adding deadpool timeouts. (#2775) 2023-03-03 10:30:03 +01:00
Dessalines 1dba94c9cb
Adding TOTP / 2FA to lemmy (#2741)
* Combine prod and dev docker setups using build-arg

- Fixes #2603

* Dont use cache for release build.

* Adding 2FA / TOTP support.

- Fixes #2363

* Changed name to totp_2fa for clarity.

* Switch to sha256 for totp.
2023-03-02 21:37:41 +01:00
Dessalines 985fe24669
Get rid of Safe Views, use serde_skip (#2767)
* Get rid of Safe Views, use serde_skip

- Also change the ViewToVec, to work with non-vector cases. Might be
  necessary in preparation for #2763
- Fixes #2712

* Forgot one safe

---------

Co-authored-by: Nutomic <me@nutomic.com>
2023-03-01 18:19:46 +01:00
Dessalines 48f187188b
Show deleted and removed posts for profile views. Fixes #2624 (#2729)
* Show deleted and removed posts for profile views. Fixes #2624

* Only showing non-deleted/removed posts for creator.

* Add a admin or mod check to views, to show deleted and removed posts.

- Also removed the pointless "blanking" functions

* Fix clippy

* Make hidden posts comment clearer.

* Fixing federation tests.

* Fixing fmt.
2023-02-28 22:46:15 -05:00
Nutomic d9e7f0100a
Dont upsert Instance row every apub fetch (#2771)
This is not necessary because the domain cant change, so we only
need to insert if no row exists for this domain.

Also fetch instance actor when parsing person, not only community

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-02-28 21:36:57 -05:00