Skip to content

Commit

Permalink
Merge pull request pepyatka#219 from golozubov/comment_creation_impro…
Browse files Browse the repository at this point in the history
…vement

[WIP] Optimize comment creation
  • Loading branch information
dsumin authored Jun 1, 2017
2 parents 40c131e + 2bb4a36 commit 93d4d24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/support/EventService.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ export class EventService {
static async _processMentionsInComment(comment, post, commentAuthor) {
let mentions = extractMentionsWithIndices(comment.body);

if (mentions.length == 0) {
return;
}

let postGroupIntId = null;
const feeds = await post.getPostedTo();
if (feeds.length === 1) {
Expand Down

0 comments on commit 93d4d24

Please sign in to comment.