Moves blocking to save function

I just like these better than signals??
This commit is contained in:
Mouse Reeve
2021-02-15 12:21:48 -08:00
parent 930d9429ef
commit 65f81bd5f0
2 changed files with 12 additions and 18 deletions

View File

@ -195,7 +195,7 @@ def handle_block(activity):
''' blocking a user '''
# create "block" databse entry
activitypub.Block(**activity).to_model(models.UserBlocks)
# the removing relationships is handled in post-save hook in model
# the removing relationships is handled in model save
@app.task