From 15be02c9a01ea026b571e334952565c2dec7f1aa Mon Sep 17 00:00:00 2001 From: bnu Date: Fri, 13 Apr 2018 17:48:20 +0900 Subject: [PATCH] =?UTF-8?q?#2253=20#2256=20=EC=9E=84=EC=8B=9C=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EA=B2=8C=EC=8B=9C=EB=AC=BC=EC=9D=B4=20=EC=8B=A0?= =?UTF-8?q?=EB=94=94=EC=BC=80=EC=9D=B4=EC=85=98=20=EC=A0=84=EC=86=A1?= =?UTF-8?q?=EB=90=A0=20=EC=88=98=20=EC=9E=88=EB=8A=94=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=20=EA=B3=A0=EC=B9=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/syndication/syndication.controller.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/syndication/syndication.controller.php b/modules/syndication/syndication.controller.php index 6cd10aba4e..8041bc085c 100644 --- a/modules/syndication/syndication.controller.php +++ b/modules/syndication/syndication.controller.php @@ -13,6 +13,7 @@ class syndicationController extends syndication function triggerInsertDocument(&$obj) { if($obj->module_srl < 1) return $this->makeObject(); + if($obj->status !== 'PUBLIC') return $this->makeObject(); $oSyndicationModel = getModel('syndication'); $oModuleModel = getModel('module'); @@ -44,7 +45,16 @@ function triggerUpdateDocument(&$obj) { $target_id = sprintf('%s-%s', $obj->module_srl, $obj->document_srl); $id = $oSyndicationModel->getID('article', $target_id); + + // PUBLIC 외 삭제 + if($obj->status === 'PUBLIC') + { $this->ping($id, 'article'); + } + else + { + $this->ping($id, 'deleted'); + } return $this->makeObject(); }