diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php
index 6d664d7b4..5d4d8a919 100644
--- a/bbs/write_comment_update.php
+++ b/bbs/write_comment_update.php
@@ -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') // 댓글 수정
{
diff --git a/bbs/write_comment_update.sns.php b/bbs/write_comment_update.sns.php
index 1e4e63436..0425f2d4c 100644
--- a/bbs/write_comment_update.sns.php
+++ b/bbs/write_comment_update.sns.php
@@ -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);
diff --git a/plugin/sns/view_comment_write.sns.skin.php b/plugin/sns/view_comment_write.sns.skin.php
index ba3e50012..4cd2b82ba 100644
--- a/plugin/sns/view_comment_write.sns.skin.php
+++ b/plugin/sns/view_comment_write.sns.skin.php
@@ -43,7 +43,7 @@ if (!$board['bo_use_sns']) return;
echo '
';
echo '';
echo '';
- echo '';
+ echo '';
}
echo '';
}
@@ -101,7 +101,7 @@ if (!$board['bo_use_sns']) return;
echo '';
echo '';
echo '';
- echo '';
+ echo '';
}
echo '';
}