Federating lists and shelves

This commit is contained in:
Mouse Reeve
2021-02-02 09:37:46 -08:00
parent c7914d1394
commit e53b4e57fa
8 changed files with 74 additions and 29 deletions

View File

@ -71,10 +71,15 @@ class Goal(View):
broadcast(
request.user,
status.to_create_activity(request.user),
privacy=status.privacy,
software='bookwyrm')
# re-format the activity for non-bookwyrm servers
remote_activity = status.to_create_activity(request.user, pure=True)
broadcast(request.user, remote_activity, software='other')
broadcast(
request.user,
remote_activity,
privacy=status.privacy,
software='other')
return redirect(request.headers.get('Referer', '/'))