Check if subscription count is more than 0 to subscribe to notifications
This commit is contained in:
parent
77184bbad0
commit
7eb72c87f5
@ -133,7 +133,7 @@ def activity_object_add(actor_user_id, verb, object_type, object_id,
|
|||||||
subscriptions = notification_get_subscriptions(
|
subscriptions = notification_get_subscriptions(
|
||||||
context_object_type, context_object_id, actor_user_id)
|
context_object_type, context_object_id, actor_user_id)
|
||||||
|
|
||||||
if subscriptions.count():
|
if subscriptions.count() > 0:
|
||||||
activity = dict(
|
activity = dict(
|
||||||
actor_user=actor_user_id,
|
actor_user=actor_user_id,
|
||||||
verb=verb,
|
verb=verb,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user