Pārlūkot izejas kodu

Merge pull request #2381 from pixelfed/staging

Update DiscoverController, fixes #2378
daniel 4 gadi atpakaļ
vecāks
revīzija
11dc496926
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1 0
      CHANGELOG.md
  2. 1 1
      app/Http/Controllers/DiscoverController.php

+ 1 - 0
CHANGELOG.md

@@ -86,6 +86,7 @@
 - Updated Hashtag.vue, add nsfw toggle. Fixes ([#2225](https://github.com/pixelfed/pixelfed/issues/2225)). ([e5aa506c](https://github.com/pixelfed/pixelfed/commit/e5aa506c))
 - Updated Timeline.vue, move compose button. ([9cad8f77](https://github.com/pixelfed/pixelfed/commit/9cad8f77))
 - Updated status embed, allow photo albums. Fixes ([#2374](https://github.com/pixelfed/pixelfed/issues/2374)). ([d11fac0d](https://github.com/pixelfed/pixelfed/commit/d11fac0d))
+- Updated DiscoverController, fixes ([#2378](https://github.com/pixelfed/pixelfed/issues/2378)). ([8e7f4f9d](https://github.com/pixelfed/pixelfed/commit/8e7f4f9d))
 
 ## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9)
 ### Added

+ 1 - 1
app/Http/Controllers/DiscoverController.php

@@ -118,7 +118,7 @@ class DiscoverController extends Controller
       abort_if(!config('instance.discover.tags.is_public') && !$auth, 403);
 
       $this->validate($request, [
-        'hashtag' => 'required|alphanum|min:1|max:124',
+        'hashtag' => 'required|string|min:1|max:124',
         'page' => 'nullable|integer|min:1|max:' . ($auth ? 29 : 10)
       ]);