trigger-get-author-fixes
Some checks failed
Deploy to core / deploy (push) Failing after 3m32s

This commit is contained in:
2024-02-21 12:10:30 +03:00
parent 4cde1c14b4
commit 8f6416a73c
2 changed files with 1 additions and 3 deletions

View File

@@ -19,12 +19,10 @@ async def update_follows_for_user(connection, user_id, entity_type, entity, is_i
follows = {
"topics": [],
"authors": [],
# "shouts": [],
"communities": [
{"slug": "discours", "name": "Дискурс", "id": 1, "desc": ""}
],
}
entity_type = "communitie" if entity_type == "community" else entity_type
if is_insert:
follows[f"{entity_type}s"].append(entity)
else: