Improve the replies/thread display
This commit is contained in:
parent
6f7f2ae91c
commit
63b2d2870a
8 changed files with 96 additions and 43 deletions
|
@ -958,12 +958,15 @@ class Note(BaseActivity):
|
|||
'meta.count_reply': -1,
|
||||
'meta.count_direct_reply': direct_reply,
|
||||
},
|
||||
'$pull': {'meta.thread_children': self.id},
|
||||
|
||||
}):
|
||||
DB.outbox.update_one({'activity.object.id': reply.id}, {
|
||||
'$inc': {
|
||||
'meta.count_reply': 1,
|
||||
'meta.count_direct_reply': direct_reply,
|
||||
},
|
||||
'$pull': {'meta.thread_children': self.id},
|
||||
})
|
||||
|
||||
direct_reply = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue