Add public_id fixes throughout the code
This adds several things, mainly code which checks for the public id and if it doesn't exist generating it where it can. This is to because we need to keep the public_id to be able to effectively soft delete models. This also adds a public_id field to the Activity along with a migration.
This commit is contained in:
@@ -500,6 +500,10 @@ def feed_endpoint(request, outbox=None):
|
||||
"No such 'image' with id '{0}'.".format(obj_id)
|
||||
)
|
||||
|
||||
# Okay lets do our best to ensure there is a public_id for
|
||||
# this image, there most likely is but it's important!
|
||||
entry.get_public_id(request.urlgen)
|
||||
|
||||
# Make the delete activity
|
||||
generator = create_generator(request)
|
||||
activity = create_activity(
|
||||
|
||||
Reference in New Issue
Block a user