mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
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. |
||
|---|---|---|
| .devcontainer | ||
| .github/workflows | ||
| migration | ||
| src | ||
| .env.example | ||
| .envrc | ||
| .gitattributes | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Changelog.md | ||
| CODE_OF_CONDUCT.md | ||
| docker-compose.yml | ||
| flake.lock | ||
| flake.nix | ||
| Jenkinsfile | ||
| justfile | ||
| LICENSE | ||
| module.nix | ||
| nix-bootstrap.sh | ||
| README.MD | ||
| shell.nix | ||
Lysand ActivityPub Bridge
ActivityPub/ActivityStreams compatibility layer for Lysand Server.
Designed as a microservice, runs as its own process and communicates with the main server via HTTP.
Development (Flakes)
This repo uses Flakes from the get-go.
# Dev shell
nix develop
# or run via cargo
nix develop -c cargo run
# build
nix build
We also provide a justfile for Makefile'esque commands.
Building
Docker/Podman
To build the Docker image, run the following command:
docker build -t activitypub:latest .
To run the docker image, use the docker-compose.yml file:
wget https://raw.githubusercontent.com/lysand-org/activitypub/main/docker-compose.yml
docker-compose up -d
If you are building from source, make sure to replace the image name in the docker-compose.yml file.
