mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
also 404 for faq posts
This commit is contained in:
parent
300b5192e4
commit
a1f200de6c
1 changed files with 5 additions and 2 deletions
|
@ -103,8 +103,11 @@ class ContentActions extends Actions
|
|||
|
||||
public static function executeFaqPost($relativeUri)
|
||||
{
|
||||
$post = Post::load(ltrim($relativeUri, '/'));
|
||||
if (!$post)
|
||||
try
|
||||
{
|
||||
$post = Post::load(ltrim($relativeUri, '/'));
|
||||
}
|
||||
catch (PostNotFoundException $e)
|
||||
{
|
||||
return ['page/404', []];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue