Skip to content

Commit

Permalink
#2253 #2256 임시 저장 게시물이 신디케이션 전송될 수 있는 문제 고침
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Apr 13, 2018
1 parent 8343107 commit 15be02c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/syndication/syndication.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 15be02c

Please sign in to comment.