Progress
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
class ManifestsController < EmptyController
|
||||
|
||||
def show
|
||||
render json: {} #InstancePresenter.new, serializer: ManifestSerializer
|
||||
render json: InstancePresenter.new, serializer: ManifestSerializer
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ class MediaProxyController < ApplicationController
|
||||
def show
|
||||
RedisLock.acquire(lock_options) do |lock|
|
||||
if lock.acquired?
|
||||
@media_attachment = MediaAttachment.remote.find(params[:id])
|
||||
@media_attachment = MediaAttachment.find(params[:id])
|
||||
redownload! if @media_attachment.needs_redownload? && !reject_media?
|
||||
else
|
||||
raise GabSocial::RaceConditionError
|
||||
@@ -29,6 +29,8 @@ class MediaProxyController < ApplicationController
|
||||
def version
|
||||
if request.path.ends_with?('/small')
|
||||
:small
|
||||
elsif request.path.ends_with?('/playable')
|
||||
:playable
|
||||
else
|
||||
:original
|
||||
end
|
||||
|
||||
@@ -17,10 +17,7 @@ class Settings::ProfilesController < Settings::BaseController
|
||||
|
||||
def update
|
||||
# if verified and display_name is different, return flash error and redirect back
|
||||
if @account.is_verified && params[:account][:display_name] && @account.display_name != params[:account][:display_name]
|
||||
flash[:alert] = 'Unable to change Display name for verified account'
|
||||
redirect_to settings_profile_path
|
||||
elsif !@account.is_pro && params[:account][:username] && @account.username != params[:account][:username]
|
||||
if !@account.is_pro && params[:account][:username] && @account.username != params[:account][:username]
|
||||
flash[:alert] = 'Unable to change username for your account. You are not GabPRO'
|
||||
redirect_to settings_profile_path
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user