0001-atal-deduplicate-comments-47850.patch
passerelle/apps/atal/models.py | ||
---|---|---|
351 | 351 | |
352 | 352 |
all_comments.append(comment) |
353 | 353 |
if dateobj and issup(dateobj, last_datetime) or last_datetime is None: |
354 |
new_comments.append(comment) |
|
354 |
if comment not in new_comments: |
|
355 |
new_comments.append(comment) |
|
355 | 356 |
return { |
356 | 357 |
'data': { |
357 | 358 |
'new_comments': new_comments, |
358 |
- |