Commit Graph

31 Commits (5d837780f5d149cb8d3b861c63a7dc4466a7cbf1)

Author SHA1 Message Date
Dessalines 5d837780f5
Add diesel_async, get rid of blocking function (#2510)
* Moving settings to Database.

- Moves many settings into the database. Fixes #2285
- Adds a local_site and instance table. Fixes #2365 . Fixes #2368
- Separates SQL update an insert forms, to avoid runtime errors.
- Adds TypedBuilder to all the SQL forms, instead of default.

* Fix weird clippy issue.

* Removing extra lines.

* Some fixes from suggestions.

* Fixing apub tests.

* Using instance creation helper function.

* Move forms to their own line.

* Trying to fix local_site_data, still broken.

* Testing out async

* Testing out async 2

* Fixing federation tests.

* Trying to fix check features 1.

* Starting on adding diesel async. 1/4th done.

* Added async to views and schema.

* Adding some more async

* Compiling now.

* Added diesel async. Fixes #2465

* Running clippy --fix

* Trying to fix cargo test on drone.

* Trying new muslrust.

* Trying a custom dns

* Trying a custom dns 2

* Trying a custom dns 3

* Trying a custom dns 4

* Trying a custom dns 5

* Trying a custom dns 6

* Trying a custom dns 7

* Addressing PR comments.

* Adding check_apub to all verify functions.

* Reverting back drone.

* Fixing merge

* Fix docker images.

* Adding missing discussion_languages.

* Trying to fix federation tests.

* Fix site setup user creation.

* Fix clippy

* Fix clippy 2

* Test api faster

* Try to fix 1

* Try to fix 2

* What are these lines about

* Trying to fix 3

* Moving federation test back to top.

* Remove logging cat.
2 years ago
Nutomic fcaf7a084c
Upgrade activitypub_federation to 0.2.0, add setting federation.debug (#2300) 2 years ago
Felix Ableitner f24999027e Merge crates db_schema and db_queries 3 years ago
Nutomic b96ce81f89
Move code to apub library (#1795)
* Remove dependency of apub_lib on LemmyContext

* Move ApubObject trait to library

* Reorganize files in apub lib

* Move ActorType, signatures, activity_queue to apub library
3 years ago
Felix Ableitner c1db86925f Merge apub, apub_receive crates (fixes #1621) 3 years ago
Nutomic c7de1fcf24
Apub inbox rewrite (#1652)
* start to implement apub inbox routing lib

* got something that almost works

* it compiles!

* implemented some more

* move library code to separate crate (most of it)

* convert private message handlers

* convert all comment receivers (except undo comment)

* convert post receiver

* add verify trait

* convert community receivers

* add cc field for all activities which i forgot before

* convert inbox functions, add missing checks

* convert undo like/dislike receivers

* convert undo_delete and undo_remove receivers

* move block/unblock activities

* convert remaining activity receivers

* reimplement http signature verification and other checks

* also use actor type for routing, VerifyActivity and SendActivity traits

* cleanup and restructure apub_receive code

* wip: try to fix activity routing

* implement a (very bad) derive macro for activityhandler

* working activity routing!

* rework pm verify(), fix tests and confirm manually

also remove inbox username check which was broken

* rework following verify(), fix tests and test manually

* fix post/comment create/update, rework voting

* Rewrite remove/delete post/comment, fix tests, test manually

* Rework and fix (un)block user, announce, update post

* some code cleanup

* rework delete/remove activity receivers (still quite messy)

* rewrite, test and fix add/remove mod, update community handlers

* add docs for ActivityHandler derive macro

* dont try to compile macro comments
3 years ago
Dessalines 2309088b03 Renaming to api/v3 3 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.
3 years ago
Dessalines 929f1d02b5 Fixing integration tests. 3 years ago
Felix Ableitner e492cce206 Allow running docker-less federation tests locally 3 years ago
Felix Ableitner d5955b60c0 silence lemmy output in federation logs 3 years ago
Felix Ableitner f33577b317 send activities sync for tests 3 years ago
Felix Ableitner 543be801ab disable debug log 3 years ago
Felix Ableitner ab6b28ee60 use dash 3 years ago
Felix Ableitner 0c89e9c2d6 use hosts file 3 years ago
Felix Ableitner 30a1a69850 setup db 3 years ago
Felix Ableitner 9c7f2cb0c3 fix bin path 3 years ago
Felix Ableitner b61bfcefa7 find the binary 3 years ago
Felix Ableitner 7c12b1026c faster release build 3 years ago
Felix Ableitner 5b376de5f5 need to use release bin 3 years ago
Felix Ableitner df2ec0aa38 try running federation tests in same alpine version 3 years ago
Felix Ableitner 4fd6b5f5e1 fix script location 3 years ago
Felix Ableitner 405e7eff27 try to fix federation test 3 years ago
Felix Ableitner 7af4a60ec4 change dir to read config 3 years ago
Felix Ableitner 7b2c59bd98 use bash, install psql 3 years ago
Felix Ableitner 580e397525 dont use alpine for federation test 3 years ago
Felix Ableitner 7717deda0e more debug 3 years ago
Felix Ableitner cdcbef088d more debugging 3 years ago
Felix Ableitner 94d6ceb4df install bash and curl 3 years ago
Felix Ableitner 200913f631 try with sh 3 years ago
Felix Ableitner f76f742ba7 implement federation test in bash 3 years ago