summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Uckelman <uckelman@nomic.net>2011-09-26 22:31:45 +0200
committerJoel Uckelman <uckelman@nomic.net>2011-09-26 22:31:45 +0200
commit6895ac6c4274221cc28124fa9eead033b18cb626 (patch)
treea2710846570231cc4db553e870add639afd9d87c
parent0655db496d5c0554f121aa0ee40815129892fecc (diff)
Don't delete message id's from the post DB, as this prevents replies coming in over the list from being routed to the correct forum topic.
-rw-r--r--posting.patch12
-rw-r--r--src/Bridge.php2
-rw-r--r--src/BridgeImpl.php10
3 files changed, 0 insertions, 24 deletions
diff --git a/posting.patch b/posting.patch
index 3ab9e56..bf0e7c0 100644
--- a/posting.patch
+++ b/posting.patch
@@ -11,15 +11,3 @@
if ($config['enable_post_confirm'] && !$user->data['is_registered'] && (isset($captcha) && $captcha->is_solved() === true) && ($mode == 'post' || $mode == 'reply' || $mode == 'quote'))
{
$captcha->reset();
-@@ -1555,6 +1559,11 @@
- );
-
- $next_post_id = delete_post($forum_id, $topic_id, $post_id, $data);
-+
-+ /* start list bridge */
-+ require_once('/var/www/bridge/src/forum_post_delete.php');
-+ /* end list bridge */
-+
- $post_username = ($post_data['poster_id'] == ANONYMOUS && !empty($post_data['post_username'])) ? $post_data['post_username'] : $post_data['username'];
-
- if ($next_post_id === false)
diff --git a/src/Bridge.php b/src/Bridge.php
index a84c304..e4a813f 100644
--- a/src/Bridge.php
+++ b/src/Bridge.php
@@ -38,8 +38,6 @@ interface Bridge {
public function registerByMessageId($messageId, $inReplyTo);
public function unregisterMessage($editId);
-
- public function removePost($postId);
}
?>
diff --git a/src/BridgeImpl.php b/src/BridgeImpl.php
index df21a89..c299efa 100644
--- a/src/BridgeImpl.php
+++ b/src/BridgeImpl.php
@@ -144,16 +144,6 @@ class BridgeImpl implements Bridge {
}
}
- public function removePost($postId) {
- throw_if_null($postId);
-
- $sql = 'DELETE FROM posts WHERE post_id = ' . $postId;
-
- $count = $this->db->exec($sql);
-
- return $count > 0;
- }
-
protected function get_exactly_one_row($sql) {
$result = $this->db->query($sql);