mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #3417 from techAPJ/patch-2
FIX: flagging topic was giving error message
This commit is contained in:
commit
886cd41b15
@ -81,7 +81,9 @@ Discourse.ActionSummary = Discourse.Model.extend({
|
||||
flag_topic: this.get('flagTopic') ? true : false
|
||||
}
|
||||
}).then(function(result) {
|
||||
return post.updateActionsSummary(result);
|
||||
if (!self.get('flagTopic')) {
|
||||
return post.updateActionsSummary(result);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
self.removeAction();
|
||||
var message = $.parseJSON(error.responseText).errors;
|
||||
|
Loading…
Reference in New Issue
Block a user