fix empty comment on podcast mark

This commit is contained in:
Your Name 2023-02-11 23:10:24 -05:00 committed by Henri Dickson
parent eee3dbe411
commit 8edce3122b
2 changed files with 4 additions and 2 deletions

View file

@ -223,7 +223,9 @@ class Comment(Content):
@staticmethod
def comment_item_by_user(item, user, text, visibility=0):
comment = Comment.objects.filter(owner=user, item=item).first()
comment = Comment.objects.filter(
owner=user, item=item, focus_item__isnull=True
).first()
if not text:
if comment is not None:
comment.delete()

View file

@ -22,7 +22,7 @@
</div>
<div class="entity-list__entity-text">
<div class="action-bar">
{% if activity.action_object.mark.text %}
{% if activity.action_object.text %}
<!--
<span style="margin-right:8px;">
<i class="fa-regular fa-bookmark"></i>