summaryrefslogtreecommitdiff
path: root/src/F2M.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/F2M.php')
-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);