2012-04-08, 02:26
I've found that editing posts via tapatalk causes the user to be unsubscribed from the thread. I'm the developer of the Forum Browser addon and the behavior occurs both in the addon and in the mobile app. I think I've found the cause in the Tapatalk plugin source. Below you will see that the plugin sets the subscription method to "" and the MyBB post handling code then deletes the thread. The forums code would normally set this value based on the checkboxes in the post form. It seems like a fix would to be to set "subscriptionmethod" to "none" in the Tapatalk plugin code. I'm not exactly a php expert but I think I've followed the code correctly.
Edit: I also reported this issue in the Tapatalk forums.
mobiquo/include/save_raw_post.php -> function save_raw_post_func()
_mybbpath_/inc/datahandlers/post.php -> function update_post()
Edit: I also reported this issue in the Tapatalk forums.
mobiquo/include/save_raw_post.php -> function save_raw_post_func()
Code:
// Set up the post options from the input.
$post['options'] = array(
"signature" => 1,
"subscriptionmethod" => "",
"disablesmilies" => 0
);
_mybbpath_/inc/datahandlers/post.php -> function update_post()
Code:
// Automatic subscription to the thread
if($post['options']['subscriptionmethod'] != "" && $post['uid'] > 0)
{
switch($post['options']['subscriptionmethod'])
{
case "instant":
$notification = 1;
break;
default:
$notification = 0;
}
require_once MYBB_ROOT."inc/functions_user.php";
add_subscribed_thread($post['tid'], $notification, $post['uid']);
}
else
{
$db->delete_query("threadsubscriptions", "uid='".intval($post['uid'])."' AND tid='".intval($post['tid'])."'");
}