diff options
author | Andrew Godwin | 2022-11-15 18:30:30 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-15 15:30:32 -0700 |
commit | 20e63023bb0d3c7e4cb36b91b73e79f51889cc90 (patch) | |
tree | 96c99139f03550e35902440cd321290bc47f8f0f /users/admin.py | |
parent | 4aa92744aea6097ffb784ca7de6bd95cc599988d (diff) | |
download | takahe-20e63023bb0d3c7e4cb36b91b73e79f51889cc90.tar.gz takahe-20e63023bb0d3c7e4cb36b91b73e79f51889cc90.tar.bz2 takahe-20e63023bb0d3c7e4cb36b91b73e79f51889cc90.zip |
Get outbound likes/boosts and their undos working
Diffstat (limited to 'users/admin.py')
-rw-r--r-- | users/admin.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/admin.py b/users/admin.py index e52e41c..dfd72e7 100644 --- a/users/admin.py +++ b/users/admin.py @@ -23,12 +23,17 @@ class IdentityAdmin(admin.ModelAdmin): list_display = ["id", "handle", "actor_uri", "state", "local"] raw_id_fields = ["users"] actions = ["force_update"] + readonly_fields = ["actor_json"] @admin.action(description="Force Update") def force_update(self, request, queryset): for instance in queryset: instance.transition_perform("outdated") + @admin.display(description="ActivityPub JSON") + def actor_json(self, instance): + return instance.to_ap() + @admin.register(Follow) class FollowAdmin(admin.ModelAdmin): |