From 30b020f372b09594f3ecc1086baf3e7553768a74 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Fri, 9 Dec 2022 09:41:18 +0800 Subject: [PATCH] * Fix feedback 1397. --- module/webhook/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/webhook/model.php b/module/webhook/model.php index ce5c32ad80..74a292e885 100644 --- a/module/webhook/model.php +++ b/module/webhook/model.php @@ -422,6 +422,7 @@ class webhookModel extends model $viewLink = $this->getViewLink($objectType == 'kanbancard' ? 'kanban' : $objectType, $objectType == 'kanbancard' ? $object->kanban : $objectID); $objectTypeName = ($objectType == 'story' and $object->type == 'requirement') ? $this->lang->action->objectTypes['requirement'] : $this->lang->action->objectTypes[$objectType]; $title = $this->app->user->realname . $this->lang->action->label->$actionType . $objectTypeName; + $host = (defined('RUN_MODE') and RUN_MODE == 'api') ? '' : $host; $text = $title . ' ' . "[#{$objectID}::{$object->$field}](" . $host . $viewLink . ")"; $mobile = '';