Merge commit '7f16397f3c37a8e378239974b73afbfe2b6e6844' into glitch-soc/merge-upstream
Conflicts: - `lib/mastodon/version.rb`: Upstream bumped the mastodon API version, glitch-soc has a change on an adjacent line adding a glitch API version.
This commit is contained in:
commit
0e1ea3110e
86 files changed
+1440
-273
No files matched your search
@@ -47,10 +47,6 @@ class Api::V1::Peers::SearchController < Api::BaseController
|
||||
end
|
||||
|
||||
def normalized_domain
|
||||
TagManager.instance.normalize_domain(query_value)
|
||||
end
|
||||
|
||||
def query_value
|
||||
params[:q].strip
|
||||
TagManager.instance.normalize_domain(params[:q])
|
||||
end
|
||||
end
|
||||
@@ -39,6 +39,6 @@ class Api::V1::TagsController < Api::BaseController
|
||||
def set_or_create_tag
|
||||
return not_found unless Tag::HASHTAG_NAME_RE.match?(params[:id])
|
||||
|
||||
@tag = Tag.find_normalized(params[:id]) || Tag.new(name: Tag.normalize(params[:id]), display_name: params[:id])
|
||||
@tag = Tag.find_normalized(params[:id]) || Tag.new(name: params[:id], display_name: params[:id])
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user