Switch to Litepub (#50)

* Try out litepub

* Remove the Article API
This commit is contained in:
Thomas Sileo 2019-05-11 12:19:19 +02:00 committed by GitHub
parent 1d0d5fa8b1
commit faaf1d83a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -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`...)

1
app.py
View file

@ -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)

View file

@ -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