Skip to content

Commit

Permalink
Laravel fixes (#5451)
Browse files Browse the repository at this point in the history
Laravel fixes
  • Loading branch information
peppy committed Dec 23, 2019
2 parents e481578 + 977bc5d commit b24b6a0
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 197 deletions.
4 changes: 4 additions & 0 deletions app/helpers.php
Expand Up @@ -717,6 +717,10 @@ function post_url($topicId, $postId, $jumpHash = true, $tail = false)
$postIdParamKey = 'end';
}

if ($topicId === null) {
return;
}

$url = route('forum.topics.show', ['topic' => $topicId, $postIdParamKey => $postId]);

return $url;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -28,7 +28,7 @@
"guzzlehttp/guzzle": "*",
"itsgoingd/clockwork": ">=3.0",
"jenssegers/agent": "*",
"laravel/framework": "6.*",
"laravel/framework": "6.8.0",
"laravel/helpers": "^1.1",
"laravel/passport": "*",
"laravel/slack-notification-channel": "^2.0",
Expand Down

0 comments on commit b24b6a0

Please sign in to comment.