Commit graph

214 commits

Author SHA1 Message Date
aprilthepink 02c1c4f9f8 fix: ruse only one UUID in test instead of two different 2024-06-27 05:31:58 +02:00
aprilthepink b52024d726 Merge branch 'test1' 2024-06-27 05:17:03 +02:00
aprilthepink dc4afd8411 feat: meow meow akkoma? 2024-06-27 05:13:38 +02:00
April John 6b6d36b30b
feat: basic AP <-> lysand conversion (#4)
* feat: Update API domain variable name

* save changes, fake commit

* feat: function to receive lysand note

* [feat]: lysand to ap for posts and users

* feat: Add .env file to gitignore and update dependencies

The commit adds the `.env` file to the `.gitignore` and updates the dependencies in the `Cargo.toml` and `Cargo.lock` files. This change ensures that sensitive environment variables are not committed to the repository and keeps the dependencies up to date.

* feat: Add db_post_from_url function

The commit adds the `db_post_from_url` function to the `conversion.rs` file. This function retrieves a post from the database based on a given URL. If the post is not found in the database, it fetches the post from the URL, saves it to the database, and returns the post. This change enhances the functionality of the codebase by providing a convenient way to retrieve and store posts.

* feat: Update dependencies and add async-recursion crate

* fix: Refactor lysand note handling in conversion.rs

The commit refactors the lysand note handling in the `conversion.rs` file. It updates the `receive_lysand_note` function to properly handle quoting and replying to notes. This change improves the functionality and readability of the codebase.

* fix: use example as default user

* me oopid

* fix: Refactor lysand note handling in conversion.rs

* fix: fix post printing

* fix: Refactor lysand note handling in conversion.rs

* fix: Refactor lysand note handling in conversion.rs

* fix: make nix-bootstrap executable

* fix: remove unused linux only import

* fix: make person stop screaming at me :(

* feat: remove test code

* fix: update deps

* fix: rm build.rs fully

* feat: standard user to apservice

* fix: format files
2024-06-18 01:56:25 +00:00
aprilthepink cd6ff024e4 fix: format files 2024-06-18 03:43:59 +02:00
aprilthepink 489a216aca feat: standard user to apservice 2024-06-18 03:34:37 +02:00
aprilthepink c601fb03eb fix: rm build.rs fully 2024-06-18 01:52:47 +02:00
aprilthepink 3359da6139 fix: update deps 2024-06-18 01:48:17 +02:00
aprilthepink b6ca94b809 feat: remove test code 2024-06-18 01:46:24 +02:00
aprilthepink a90a2695a9 fix: make person stop screaming at me :( 2024-06-17 23:50:31 +02:00
aprilthepink ef89602d6f fix: remove unused linux only import 2024-06-17 23:49:40 +02:00
aprilthepink b08e3459b9 fix: make nix-bootstrap executable 2024-06-17 22:47:21 +02:00
aprilthepink 766819346f fix: Refactor lysand note handling in conversion.rs 2024-06-17 22:39:03 +02:00
aprilthepink 03f6663768 fix: Refactor lysand note handling in conversion.rs 2024-06-17 22:33:30 +02:00
aprilthepink 56b008fcae fix: fix post printing 2024-06-17 21:58:00 +02:00
aprilthepink da40e5b5e6 fix: Refactor lysand note handling in conversion.rs 2024-06-17 21:55:42 +02:00
aprilthepink e8d716c7a5 me oopid 2024-06-17 21:50:33 +02:00
aprilthepink a6c0fc4755 fix: use example as default user 2024-06-17 21:47:48 +02:00
aprilthepink 21a3447a84 fix: Refactor lysand note handling in conversion.rs
The commit refactors the lysand note handling in the `conversion.rs` file. It updates the `receive_lysand_note` function to properly handle quoting and replying to notes. This change improves the functionality and readability of the codebase.
2024-06-17 21:44:29 +02:00
aprilthepink 9e148fe77f feat: Update dependencies and add async-recursion crate 2024-06-17 21:40:25 +02:00
aprilthepink 1588b2e46c feat: Add db_post_from_url function
The commit adds the `db_post_from_url` function to the `conversion.rs` file. This function retrieves a post from the database based on a given URL. If the post is not found in the database, it fetches the post from the URL, saves it to the database, and returns the post. This change enhances the functionality of the codebase by providing a convenient way to retrieve and store posts.
2024-06-17 21:35:21 +02:00
aprilthepink 15bba70d2a feat: Add .env file to gitignore and update dependencies
The commit adds the `.env` file to the `.gitignore` and updates the dependencies in the `Cargo.toml` and `Cargo.lock` files. This change ensures that sensitive environment variables are not committed to the repository and keeps the dependencies up to date.
2024-06-17 19:52:51 +02:00
aprilthepink 1174f92915 [feat]: lysand to ap for posts and users 2024-06-15 02:06:01 +02:00
April John bcab516a1f
feat: function to receive lysand note 2024-05-21 04:59:47 +02:00
April John e42baf51e4
save changes, fake commit 2024-05-19 07:17:13 +02:00
aprilthepink b65a51a1ef feat: Update API domain variable name 2024-05-17 13:24:41 +02:00
aprilthepink 14322c961f feat: Update API domain variable name
The commit updates the variable name for the API domain from `FEDERATED_DOMAIN` to `API_DOMAIN` in the `src/main.rs` file. This change improves clarity and consistency in the codebase.
2024-05-17 11:30:10 +02:00
aprilthepink c7798ac5e4 fix: docker build 2024-05-17 11:06:16 +02:00
Gaspard Wierzbinski b8bac014a2
feat(build): Add automatic Dockerbuilds 2024-05-15 15:36:22 -10:00
aprilthepink 15c30d2f30 feat: lysand extension types 2024-05-13 22:08:23 +02:00
aprilthepink eec3a037bb feat: lysand user 2024-05-13 21:31:33 +02:00
April John 9e6445d192
fix: update gh actions 2024-05-13 07:57:52 +02:00
April John 470f1f7eae
fix: format 2024-05-09 23:10:36 +02:00
April John 946804968e
feat: Lysand User struct 2024-05-09 23:09:57 +02:00
April John 5db0f6a37a
feat: oci image 2024-05-09 23:09:56 +02:00
Jesse Wierzbinski 42133b257b
docs: 📝 Update README and Docker instructions 2024-05-06 09:01:21 -10:00
April John 6af5ac94cd
awawwwa 2024-05-06 16:25:49 +02:00
April John 1340f00167
fix: simplify nix module 2024-05-06 16:12:40 +02:00
aprilthepink 4c3d06b686 fix: post::Model's insert method to remove test code 2024-05-05 18:51:45 +02:00
aprilthepink 503e433af3 Refactor import statements in person.rs 2024-05-05 18:24:59 +02:00
aprilthepink 36d10f774a feat: Add generate_follow_accept_id function to utils.rs and follow_manually endpoint to main.rs 2024-05-05 18:18:39 +02:00
aprilthepink 3ebe83c52f fix: Todo into_json method in post::Model 2024-05-05 17:17:28 +02:00
aprilthepink ce5f97ac33 feat: Refactor migration and follow code 2024-05-05 17:05:09 +02:00
aprilthepink 468371d43d Add user follow relation 2024-05-05 16:26:48 +02:00
aprilthepink 9acf6578bf format files 2024-05-04 19:07:34 +02:00
aprilthepink 07337ffe2f Update post_manually function to include path in content 2024-05-04 18:04:26 +02:00
aprilthepink d115bdda0f Add FEDERATION_CONFIG.set(data.clone()) in main.rs 2024-05-04 18:02:02 +02:00
aprilthepink 9529ac26d1 Refactor post_manually function to use GET instead of POST in main.rs 2024-05-04 17:59:26 +02:00
aprilthepink 8ac9f7bd4b Add a post fuct 2024-05-04 17:54:11 +02:00
aprilthepink 4c020229e4 Add User entity to person.rs 2024-05-04 01:26:10 +02:00