Fixed Comments counted twice

marremp2

Active member
Hello,

I installed MG 1.1.11 on XF 1.5.6 and I noticed that comments on media are counted twice.

Here is an example, this media has two comments in the database :

upload_2017-3-8_10-25-31.webp

but the number of comments shown on the media page and in other counters is 4.
upload_2017-3-8_10-26-37.webp

Thanks for your help

Marina
 
I cannot reproduce this, so I don't believe it to be a bug. The code is pretty clear here so I can't see any particular reason this would happen.

Have you ever manually deleted comments from the database? Or is there any other situation that might account for this, such as deleting the comments through some sort of spam/approval action? Or could there be some sort of add-on involved?
 
Thanks for your answer. I used an extension to manage a contest, that might be an explanation. I will ask the developper.
 
I am not sure that it is related to this extension, which does not deal with comments at all.

I made a test that may bring a clue about the problem :

Comments are moderated. When a comment is created, the counter is immediatly updated (+1) where it should not. When the comment is approved, the counter is updated again (+1).
 
I did some testing in this area, but it wasn't with automatically moderating comments. That does appear to be a genuine bug.
 
Back
Top Bottom