From faaf1d83a27b9cd9083fd5dd13d915c84925fae3 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 11 May 2019 12:19:19 +0200 Subject: [PATCH] Switch to Litepub (#50) * Try out litepub * Remove the Article API --- README.md | 2 +- app.py | 1 + requirements.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d35791..c10c6ce 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Getting closer to a stable release, it should be the "last" migration. ## Features - Implements a basic [ActivityPub](https://activitypub.rocks/) server (with federation) - - Compatible with [Mastodon](https://joinmastodon.org/) and others ([Pleroma](https://pleroma.social/), Hubzilla...) + - Compatible with [Mastodon](https://joinmastodon.org/) and others ([Pleroma](https://pleroma.social/), Plume, PixelFed, Hubzilla...) - Also implements a remote follow compatible with Mastodon instances - Exposes your outbox as a basic microblog - Support all content types from the Fediverse (`Note`, `Article`, `Page`, `Video`, `Image`, `Question`...) diff --git a/app.py b/app.py index 3486269..eef70fd 100644 --- a/app.py +++ b/app.py @@ -2585,6 +2585,7 @@ def post_to_outbox(activity: ap.BaseActivity) -> str: # Assign create a random ID obj_id = back.random_object_id() + activity.set_id(back.activity_url(obj_id), obj_id) back.save(Box.OUTBOX, activity) diff --git a/requirements.txt b/requirements.txt index e22d316..0820c85 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ bcrypt mf2py passlib git+https://github.com/erikriver/opengraph.git -git+https://github.com/tsileo/little-boxes.git +git+https://github.com/tsileo/little-boxes.git@litepub pyyaml pillow cachetools