diff options
Diffstat (limited to 'src/application')
-rw-r--r-- | src/application/actions/newtopic/post.php | 7 | ||||
-rw-r--r-- | src/application/appdef.php | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/application/actions/newtopic/post.php b/src/application/actions/newtopic/post.php index ca79599..79110eb 100644 --- a/src/application/actions/newtopic/post.php +++ b/src/application/actions/newtopic/post.php @@ -2,6 +2,7 @@ use mystic\forum\orm\Attachment; use mystic\forum\orm\Post; +use mystic\forum\orm\Subscription; use mystic\forum\orm\Topic; use mystic\forum\utils\RequestUtils; @@ -65,4 +66,10 @@ foreach ($attachments as $att) { $db->insert($attachment); } +$subscription = new Subscription(); +$subscription->id = $db->generateId(); +$subscription->userId = $currentUser->id; +$subscription->topicId = $topic->id; +$db->insert($subscription); + header("Location: ?_action=viewtopic&topic=" . urlencode($topic->id)); diff --git a/src/application/appdef.php b/src/application/appdef.php index d623cd1..1e36a07 100644 --- a/src/application/appdef.php +++ b/src/application/appdef.php @@ -1,3 +1,3 @@ <?php -const MYSTICBB_VERSION = "0.7.2"; +const MYSTICBB_VERSION = "0.7.3"; |