Skip to content

Commit 8e4e694

Browse files
author
Vikas Agarwal
committed
Github issue#623, Allow comments for System generated messages / status updates.
-- Done, now any team member of the project can comment on even system posts
1 parent f30f092 commit 8e4e694

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/projects/detail/containers/FeedContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ class FeedView extends React.Component {
8181
mapFeed(feed, showAll = false, resetNewComment = false) {
8282
const { allMembers } = this.props
8383
const item = _.pick(feed, ['id', 'date', 'read', 'tag', 'title', 'totalPosts', 'userId', 'reference', 'referenceId', 'postIds', 'isAddingComment', 'isLoadingComments', 'error'])
84+
// Github issue##623, allow comments on all posts (including system posts)
85+
item.allowComments = true
8486
if (isSystemUser(item.userId)) {
8587
item.user = SYSTEM_USER
86-
item.allowComments = false
8788
} else {
8889
item.user = allMembers[item.userId]
89-
item.allowComments = true
9090
}
9191
item.unread = !feed.read
9292
// item.html = posts[feed.postIds[0]].body

src/projects/detail/containers/MessagesContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ class MessagesView extends React.Component {
9191
const { allMembers } = this.props
9292
const item = _.pick(feed, ['id', 'date', 'read', 'tag', 'title', 'totalPosts', 'userId', 'reference', 'referenceId', 'postIds', 'isAddingComment', 'isLoadingComments', 'error'])
9393
item.isActive = isActive
94+
// Github issue##623, allow comments on all posts (including system posts)
95+
item.allowComments = true
9496
if (isSystemUser(item.userId)) {
9597
item.user = SYSTEM_USER
96-
item.allowComments = false
9798
} else {
9899
item.user = allMembers[item.userId]
99-
item.allowComments = true
100100
}
101101
item.unread = !feed.read
102102
// item.html = posts[feed.postIds[0]].body

0 commit comments

Comments
 (0)