mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update SearchController
This commit is contained in:
parent
3595552f02
commit
ac4eea6c85
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class SearchController extends Controller
|
|||
$hash = hash('sha256', $tag);
|
||||
$tokens = Cache::remember('api:search:tag:'.$hash, now()->addMinutes(5), function () use ($tag) {
|
||||
$tokens = [];
|
||||
if(Helpers::validateUrl($tag) != false) {
|
||||
if(Helpers::validateUrl($tag) != false && config('pixelfed.activitypub_enabled') == true) {
|
||||
$remote = Helpers::fetchFromUrl($tag);
|
||||
if(isset($remote['type']) && in_array($remote['type'], ['Create', 'Person']) == true) {
|
||||
$type = $remote['type'];
|
||||
|
|
Loading…
Reference in a new issue