diff --git a/components/Search/Controller/Search.php b/components/Search/Controller/Search.php index 77a12c5c72..8851360de0 100644 --- a/components/Search/Controller/Search.php +++ b/components/Search/Controller/Search.php @@ -150,7 +150,8 @@ class Search extends FeedController return [ '_template' => 'search/show.html.twig', - 'search_form' => Comp\Search::searchForm($request, query: $q, add_subscribe: true), + 'actor' => $actor, + 'search_form' => Comp\Search::searchForm($request, query: $q, add_subscribe: !\is_null($actor)), 'search_builder_form' => $search_builder_form->createView(), 'notes' => $notes ?? [], 'actors' => $actors ?? [], diff --git a/components/Search/templates/search/show.html.twig b/components/Search/templates/search/show.html.twig index eae17d7722..ddb63beb96 100644 --- a/components/Search/templates/search/show.html.twig +++ b/components/Search/templates/search/show.html.twig @@ -21,16 +21,18 @@ {{ form_row(search_form.search_query) }} {{ form_row(search_form.submit_search) }} -
- -

- {% trans %}Save this search as a feed{% endtrans %} - {{ icon('arrow-down', 'icon icon-details-open') | raw }} -

-
- {{ form_row(search_form.title) }} - {{ form_row(search_form.subscribe_to_search) }} -
+ {% if actor is not null %} +
+ +

+ {% trans %}Save this search as a feed{% endtrans %} + {{ icon('arrow-down', 'icon icon-details-open') | raw }} +

+
+ {{ form_row(search_form.title) }} + {{ form_row(search_form.subscribe_to_search) }} +
+ {% endif %} {{ form_end(search_form)}}