sns 댓글 url 전달되지 않는 오류 수정
This commit is contained in:
@ -136,9 +136,6 @@ if ($w == 'c') // 댓글 입력
|
||||
|
||||
$wr_subject = get_text(stripslashes($wr['wr_subject']));
|
||||
|
||||
// SNS 등록
|
||||
include_once("./write_comment_update.sns.php");
|
||||
|
||||
$sql = " insert into $write_table
|
||||
set ca_name = '{$wr['ca_name']}',
|
||||
wr_option = '$wr_secret',
|
||||
@ -238,6 +235,9 @@ if ($w == 'c') // 댓글 입력
|
||||
mailer($wr_name, $wr_email, $unique_email[$i], $subject, $content, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// SNS 등록
|
||||
include_once("./write_comment_update.sns.php");
|
||||
}
|
||||
else if ($w == 'cu') // 댓글 수정
|
||||
{
|
||||
|
||||
@ -53,6 +53,8 @@ if ($_POST['twitter_checked']) {
|
||||
include_once(G5_SNS_PATH."/twitter/twitterconfig.php");
|
||||
|
||||
if ( !(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) ) {
|
||||
$comment_url = G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&#c_'.$comment_id;
|
||||
|
||||
$post = googl_short_url($comment_url).' '.$wr_content;
|
||||
$post = utf8_strcut($post, 140);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user