You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
764 B

<?php
namespace App\Controllers;
use App\Post;
use Movim\Controller\Base;
class CommunityController extends Base
{
public function dispatch()
{
$this->js_check = false;
if ($this->user && $this->fetchGet('i')) {
$this->page->setTitle(__('page.explore'));
$post = Post::where('server', $this->fetchGet('s'))
->where('node', $this->fetchGet('n'))
->where('nodeid', $this->fetchGet('i'))
->first();
if ($post) {
$this->redirect('post', [
's' => $this->fetchGet('s'),
'n' => $this->fetchGet('n'),
'i' => $this->fetchGet('i'),
]);
}
}
}
}