Allow accessing local private/DM messages by URL (#8196)

* Allow accessing local private/DM messages by URL

(Provided the user pasting the URL is authorized to see the toot, obviously)

* Fix SearchServiceSpec tests
This commit is contained in:
ThibG 2018-08-15 19:33:36 +02:00 committed by Eugen Rochko
parent 4df9cabb22
commit af912fb308
3 changed files with 12 additions and 6 deletions

View file

@ -53,7 +53,7 @@ class SearchService < BaseService
end
def url_resource
@_url_resource ||= ResolveURLService.new.call(query)
@_url_resource ||= ResolveURLService.new.call(query, on_behalf_of: @account)
end
def url_resource_symbol