From 95d611d0c5a536a8c0d6a0fb8dc26cccd388e4ff Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Mon, 8 Apr 2019 23:55:26 +0200 Subject: [PATCH] Cleanup: remove unused import and blank line --- pillar/api/nodes/eve_hooks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pillar/api/nodes/eve_hooks.py b/pillar/api/nodes/eve_hooks.py index 891f4a11..6bff8269 100644 --- a/pillar/api/nodes/eve_hooks.py +++ b/pillar/api/nodes/eve_hooks.py @@ -7,7 +7,6 @@ from bson import ObjectId from werkzeug import exceptions as wz_exceptions from pillar import current_app -import pillar.markdown from pillar.api.activities import activity_subscribe, activity_object_add from pillar.api.file_storage_backends.gcs import update_file_name from pillar.api.node_types import PILLAR_NAMED_NODE_TYPES @@ -122,6 +121,7 @@ def before_inserting_nodes(items): # Default the 'user' property to the current user. item.setdefault('user', current_user.user_id) + def get_comment_verb_and_context_object_id(comment): nodes_collection = current_app.data.driver.db['nodes'] verb = 'commented' @@ -152,7 +152,6 @@ def after_inserting_nodes(items): # Subscribe to the parent of the parent comment (post or group) activity_subscribe(item['user'], 'node', context_object_id) - if context_object_id and item['node_type'] in PILLAR_NAMED_NODE_TYPES: # * Skip activity for first level items (since the context is not a # node, but a project).