fix empty comment on podcast mark
This commit is contained in:
parent
eee3dbe411
commit
8edce3122b
2 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue