Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Jan 2, 2024
1 parent 0a9f036 commit c7d3138
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posthog/models/comment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import cast
from django.db import models
from posthog.models.activity_logging.activity_log import Change, Detail, log_activity
from posthog.models.signals import mutable_receiver
Expand Down Expand Up @@ -47,7 +48,7 @@ def log_comment_activity(sender, instance: Comment, created: bool, **kwargs):
# 3. Pass only the URL which allows us to say "X commented on insight/1234"

# If it is a reply, the scope is the original comment
item_id: str = instance.source_comment_id or instance.item_id
item_id = cast(str, instance.source_comment_id) or instance.item_id
scope = "Comment" if instance.source_comment_id else instance.scope

log_activity(
Expand Down

0 comments on commit c7d3138

Please sign in to comment.