diff options
author | rinpatch <rinpatch@sdf.org> | 2019-12-09 20:45:04 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-12-09 20:45:04 +0300 |
commit | f4b7f32d51f9d0bd721befdd33b49d2c52a6e231 (patch) | |
tree | 7372c688b9bbc33767c4cbbbd6670a0612ca26fa /lib/pleroma | |
parent | 990cd7ef5d26beb49ed19279844ccc6c1ebe2218 (diff) | |
download | pleroma-f4b7f32d51f9d0bd721befdd33b49d2c52a6e231.tar.gz |
status search: prefer the status fetched by url over other results
Diffstat (limited to 'lib/pleroma')
-rw-r--r-- | lib/pleroma/activity/search.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/activity/search.ex b/lib/pleroma/activity/search.ex index f847ac238..d30a5a6a5 100644 --- a/lib/pleroma/activity/search.ex +++ b/lib/pleroma/activity/search.ex @@ -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 |