* Finish task #4599.

This commit is contained in:
chenfeiCF
2018-07-10 11:17:42 +08:00
parent ea7385a3f1
commit 74fbd3b784
7 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ class webhookModel extends model
$object = $this->dao->select('*')->from($this->config->objectTables[$objectType])->where('id')->eq($objectID)->fetch();
$field = $this->config->action->objectNameFields[$objectType];
$host = common::getSysURL();
$host = empty($webhook->domain) ? common::getSysURL() : $webhook->domain;
$viewLink = $this->getViewLink($objectType, $objectID);
$title = $this->app->user->realname . $this->lang->action->label->$actionType . $this->lang->action->objectTypes[$objectType];
$text = $title . ' ' . "[#{$objectID}::{$object->$field}](" . $host . $viewLink . ")";