summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-08-23 22:24:18 +0300
committerLauri Ojansivu <x@xet7.org>2017-08-23 22:24:18 +0300
commit36b642be0974701c5531fccb82cea90d93c4071a (patch)
tree8865d428c3210cd46af339124f5d7c6a6a4075f8
parent1e7e9d27155b9d438485bd04a7e414bb8767fd3f (diff)
parent0554d576d5d65f073a3816b0e78a9a2992fb1994 (diff)
downloadwekan-36b642be0974701c5531fccb82cea90d93c4071a.tar.gz
wekan-36b642be0974701c5531fccb82cea90d93c4071a.tar.bz2
wekan-36b642be0974701c5531fccb82cea90d93c4071a.zip
Merge branch 'andresmanelli-webhook-ids' into devel
Gogs integration part 1. Thanks to andresmanelli !
-rw-r--r--CHANGELOG.md6
-rw-r--r--models/activities.js5
-rw-r--r--server/notifications/outgoing.js5
3 files changed, 14 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fc86b997..5dc1a479 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,13 +6,15 @@ This release adds the following new features:
* [Add display Wekan version number and runtime
environment to Admin Panel](https://github.com/wekan/wekan/pull/1156);
* [Change Email address](https://github.com/wekan/wekan/pull/1161);
-* [Ubuntu snap: Use version scriptlet](https://github.com/wekan/wekan/pull/1164).
+* [Ubuntu snap: Use version scriptlet](https://github.com/wekan/wekan/pull/1164);
+* [Gogs integration part 1](https://github.com/wekan/wekan/pull/1189).
and fixes the following bugs:
* [Fix Squeezed tickbox in Card](https://github.com/wekan/wekan/pull/1171).
-Thanks to GitHub users kubiko, nztqa and xet7 for their contributions.
+Thanks to GitHub users andresmanelli, kubiko, nztqa and xet7
+for their contributions.
# v0.32 2017-07-30 Wekan release
diff --git a/models/activities.js b/models/activities.js
index b7fbc61b..208dd629 100644
--- a/models/activities.js
+++ b/models/activities.js
@@ -73,12 +73,14 @@ if (Meteor.isServer) {
// No need send notification to user of activity
// participants = _.union(participants, [activity.userId]);
params.user = activity.user().getName();
+ params.userId = activity.userId;
}
if (activity.boardId) {
board = activity.board();
params.board = board.title;
title = 'act-withBoardTitle';
params.url = board.absoluteUrl();
+ params.boardId = activity.boardId;
}
if (activity.memberId) {
participants = _.union(participants, [activity.memberId]);
@@ -88,11 +90,13 @@ if (Meteor.isServer) {
const list = activity.list();
watchers = _.union(watchers, list.watchers || []);
params.list = list.title;
+ params.listId = activity.listId;
}
if (activity.oldListId) {
const oldList = activity.oldList();
watchers = _.union(watchers, oldList.watchers || []);
params.oldList = oldList.title;
+ params.oldListId = activity.oldListId;
}
if (activity.cardId) {
const card = activity.card();
@@ -101,6 +105,7 @@ if (Meteor.isServer) {
params.card = card.title;
title = 'act-withCardTitle';
params.url = card.absoluteUrl();
+ params.cardId = activity.cardId;
}
if (activity.commentId) {
const comment = activity.comment();
diff --git a/server/notifications/outgoing.js b/server/notifications/outgoing.js
index a5bbc737..88e50fa0 100644
--- a/server/notifications/outgoing.js
+++ b/server/notifications/outgoing.js
@@ -28,6 +28,11 @@ Meteor.methods({
text: `${text}`,
};
+ ['cardId', 'listId', 'oldListId', 'boardId'].forEach((key) => {
+ if (params[key]) value[key] = params[key];
+ });
+ value['description'] = description;
+
const options = {
headers: {
// 'Content-Type': 'application/json',