Merge remote-tracking branch 'parent/main' into kb_development

This commit is contained in:
KMY 2023-09-27 21:33:12 +09:00
commit 78ddcb10c3
67 changed files with 615 additions and 230 deletions

View file

@ -14,6 +14,8 @@ class PermalinkRedirector
find_account_url_by_name(first_segment)
elsif accounts_request? && record_integer_id_request?
find_account_url_by_id(second_segment)
elsif @path.start_with?('/deck')
@path.delete_prefix('/deck')
end
end
@ -52,7 +54,7 @@ class PermalinkRedirector
end
def path_segments
@path_segments ||= @path.delete_prefix('/').split('/')
@path_segments ||= @path.delete_prefix('/deck').delete_prefix('/').split('/')
end
def find_status_url_by_id(id)