group_inbox is not registering the replies
Replies sent from the web interface are not being stored in the group_inbox table. Steps to reproduce
- create a notice from the web interface
- perform a "select * from group_inbox" from mysql console. Check that there is one row.
- create a reply to the notice from the web interface
- perform a "select * from group_inbox" from mysql console. There are no new rows
The reasons seems to be that, when replying, the target of the notice is another user. This avoids the group_inbox insert. However, when it is a regular post within the group, the target is the group.
In older versions, group_inbox was always updated despite the post was a reply or not.
I have found the cause. It is the replacement of Notice::saveNew for Notice:saveActivity. I have written a comment here 0dfafe25
There is an important change in group_inbox behavior because of this modification. A quick fix is calling saveKnownGroups to store an attention to the group of the reply.