Conflicts:
	webapp/components/create_comment.jsx
Этот коммит содержится в:
JoramWilander
2016-06-13 15:29:24 -04:00
родитель bb5ca5a878 974238231b
Коммит 5af526c259
29 изменённых файлов: 258 добавлений и 143 удалений

Просмотреть файл

@@ -603,7 +603,7 @@ export function getPosts(id) {
);
}
export function getPostsBefore(postId, offset, numPost) {
export function getPostsBefore(postId, offset, numPost, isPost) {
const channelId = ChannelStore.getCurrentId();
if (channelId == null) {
return;
@@ -624,7 +624,8 @@ export function getPostsBefore(postId, offset, numPost) {
id: channelId,
before: true,
numRequested: numPost,
post_list: data
post_list: data,
isPost
});
getProfiles();
@@ -638,7 +639,7 @@ export function getPostsBefore(postId, offset, numPost) {
);
}
export function getPostsAfter(postId, offset, numPost) {
export function getPostsAfter(postId, offset, numPost, isPost) {
const channelId = ChannelStore.getCurrentId();
if (channelId == null) {
return;
@@ -659,7 +660,8 @@ export function getPostsAfter(postId, offset, numPost) {
id: channelId,
before: false,
numRequested: numPost,
post_list: data
post_list: data,
isPost
});
getProfiles();

Просмотреть файл

@@ -163,7 +163,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
}
// remove any links added to the text by hashtag or mention parsing since they'll break this link
output += '>' + text.replace(/<\/?a[^>]*>/, '') + '</a>';
output += '>' + text.replace(/<\/?a[^>]*>/g, '') + '</a>';
return output;
}