summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-13 22:18:20 +0000
committeruckelman <uckelman@nomic.net>2010-04-13 22:18:20 +0000
commit593429688c8787e5a01ba9d34010139966b2d805 (patch)
treeb5d2da3003f6e885df10146cc6efd6398126b36c
parent6d8c656e6598c83c8a45dc9aaaf61d8cd2048b5d (diff)
Get topic_first_post_id from $data.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6713 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/F2M.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/F2M.php b/src/F2M.php
index 0b6d9dc..7417ad2 100644
--- a/src/F2M.php
+++ b/src/F2M.php
@@ -48,16 +48,7 @@ function send_to_lists($user, $mode, $data, $post_data) {
$references = null;
if ($mode == 'reply') {
- $topicId = $phpbb->getTopicId($postId);
- if ($topicId === false) {
- throw new Exception('unrecognized post id: ' . $postId);
- }
-
- $firstId = $phpbb->getFirstPostId($topicId);
- if ($firstId === false) {
- throw new Exception('topic has no first post: ' . $topicId);
- }
-
+ $firstId = $post['topic_first_post_id'];
$firstMessageId = $bridge->getMessageId($firstId);
if ($firstMessageId === null) {
throw new Exception('unrecognized post id: ' . $firstId);