status search: prefer the status fetched by url over other results
This commit is contained in:
parent
990cd7ef5d
commit
f4b7f32d51
2 changed files with 8 additions and 3 deletions
|
|
@ -86,7 +86,7 @@ defmodule Pleroma.Activity.Search do
|
|||
{:ok, object} <- Fetcher.fetch_object_from_id(search_query),
|
||||
%Activity{} = activity <- Activity.get_create_by_object_ap_id(object.data["id"]),
|
||||
true <- Visibility.visible_for_user?(activity, user) do
|
||||
activities ++ [activity]
|
||||
[activity | activities]
|
||||
else
|
||||
_ -> activities
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue