mirror of
https://github.com/discourse/discourse.git
synced 2026-08-13 14:35:08 -05:00
FIX: do not notify in title if you created the post
This commit is contained in:
@@ -583,7 +583,9 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
||||
}
|
||||
case "created": {
|
||||
postStream.triggerNewPostInStream(data.id);
|
||||
Discourse.notifyBackgroundCountIncrement();
|
||||
if (self.get('currentUser.id') !== data.user_id) {
|
||||
Discourse.notifyBackgroundCountIncrement();
|
||||
}
|
||||
return;
|
||||
}
|
||||
default: {
|
||||
|
||||
@@ -106,6 +106,8 @@ class Post < ActiveRecord::Base
|
||||
id: id,
|
||||
post_number: post_number,
|
||||
updated_at: Time.now,
|
||||
user_id: user_id,
|
||||
last_editor_id: last_editor_id,
|
||||
type: type
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user