|
|
@ -27,6 +27,7 @@ const (
|
|
|
|
_commentActionReplyDelete
|
|
|
|
_commentActionReplyDelete
|
|
|
|
_commentActionReplyThumbsUp
|
|
|
|
_commentActionReplyThumbsUp
|
|
|
|
_commentActionReplyThumbsDown
|
|
|
|
_commentActionReplyThumbsDown
|
|
|
|
|
|
|
|
_commentActionHighlight
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type cacheUnreadMsgEvent struct {
|
|
|
|
type cacheUnreadMsgEvent struct {
|
|
|
@ -138,6 +139,8 @@ func (e *commentActionEvent) Action() (err error) {
|
|
|
|
case _commentActionThumbsUp, _commentActionThumbsDown:
|
|
|
|
case _commentActionThumbsUp, _commentActionThumbsDown:
|
|
|
|
err = e.updateCommentMetric()
|
|
|
|
err = e.updateCommentMetric()
|
|
|
|
e.expireHotsComments()
|
|
|
|
e.expireHotsComments()
|
|
|
|
|
|
|
|
case _commentActionHighlight:
|
|
|
|
|
|
|
|
e.expireAllStyleComments()
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
// nothing
|
|
|
|
// nothing
|
|
|
|
}
|
|
|
|
}
|
|
|
|