mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-30 16:50:10 -04:00
FIX: do not notify in title if you created the post
This commit is contained in:
parent
e29fe77b45
commit
e17978a203
2 changed files with 5 additions and 1 deletions
app
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue