1
0
Fork 0

Merge pull request #2934 from bookwyrm-social/reduce-status-tasks

Only trigger add_status_task when status is first created
This commit is contained in:
Mouse Reeve 2023-08-01 08:30:43 -07:00 committed by GitHub
commit 211b60bba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View file

@ -62,7 +62,7 @@ class StatusTransactions(TransactionTestCase):
with patch("bookwyrm.activitystreams.add_status_task.apply_async") as mock:
view(request, "comment")
self.assertEqual(mock.call_count, 2)
self.assertEqual(mock.call_count, 1)
@patch("bookwyrm.suggested_users.rerank_suggestions_task.delay")