From 992ecfefa2e46ee7321ec9b8bfc3400532e5645e Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 11 Jun 2019 10:53:50 +0300 Subject: Show attachment name in Outgoing Webhook when attachment is added to card. Thanks to xet7 ! Related #2285 --- models/activities.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models') diff --git a/models/activities.js b/models/activities.js index 1e97895d..a4a48284 100644 --- a/models/activities.js +++ b/models/activities.js @@ -166,7 +166,8 @@ if (Meteor.isServer) { } if (activity.attachmentId) { const attachment = activity.attachment(); - params.attachment = attachment._id; + params.attachment = attachment.original.name; + params.attachmentId = attachment._id; } if (activity.checklistId) { const checklist = activity.checklist(); -- cgit v1.2.3-1-g7c22