   addActivity: (data)->
     {origin, subject} = data
 
-    unless @filters and "addactivity" in @filters
-      return
+    return if @isFiltered "activity"
 
     unless @getConstructorName(origin) and @getConstructorName(subject)
       return console.warn "data is not valid"

  deleteActivity: (data) ->
    {origin, subject} = data

    unless @filters and "deleteactivity" in @filters
      return

    unless @getConstructorName(origin) and @getConstructorName(subject)
      return console.warn "data is not valid"

  addComment: (data) ->
    {origin, reply, subject, replier} = data

    return if @isFiltered "comment"

    unless replier and origin and subject and reply
      return console.warn "data is not valid"
