DomainBlockWorker.perform_async(@domain_block.id)
redirect_to admin_domain_blocks_path, notice: I18n.t('admin.domain_blocks.created_msg')
else
- render action: :new
+ render :new
end
end
def verify_credentials
@account = current_user.account
- render action: :show
+ render :show
end
def update_credentials
current_account.update!(account_params)
@account = current_account
- render action: :show
+ render :show
end
def following
set_pagination_headers(next_path, prev_path)
- render action: :index
+ render :index
end
def followers
set_pagination_headers(next_path, prev_path)
- render action: :index
+ render :index
end
def statuses
def follow
FollowService.new.call(current_user.account, @account.acct)
set_relationship
- render action: :relationship
+ render :relationship
end
def block
@requested = { @account.id => false }
@muting = { @account.id => current_user.account.muting?(@account.id) }
- render action: :relationship
+ render :relationship
end
def mute
MuteService.new.call(current_user.account, @account)
set_relationship
- render action: :relationship
+ render :relationship
end
def unfollow
UnfollowService.new.call(current_user.account, @account)
set_relationship
- render action: :relationship
+ render :relationship
end
def unblock
UnblockService.new.call(current_user.account, @account)
set_relationship
- render action: :relationship
+ render :relationship
end
def unmute
UnmuteService.new.call(current_user.account, @account)
set_relationship
- render action: :relationship
+ render :relationship
end
def relationships
def search
@accounts = AccountSearchService.new.call(params[:q], limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:resolve] == 'true', current_account)
- render action: :index
+ render :index
end
private
raise ActiveRecord::RecordNotFound if follow_params[:uri].blank?
@account = FollowService.new.call(current_user.account, target_uri).try(:target_account)
- render action: :show
+ render :show
end
private
set_pagination_headers(next_path, prev_path)
- render action: :accounts
+ render :accounts
end
def favourited_by
set_pagination_headers(next_path, prev_path)
- render action: :accounts
+ render :accounts
end
def create
spoiler_text: status_params[:spoiler_text],
visibility: status_params[:visibility],
application: doorkeeper_token.application)
- render action: :show
+ render :show
end
def destroy
def reblog
@status = ReblogService.new.call(current_user.account, Status.find(params[:id]))
- render action: :show
+ render :show
end
def unreblog
RemovalWorker.perform_async(reblog.id)
- render action: :show
+ render :show
end
def favourite
@status = FavouriteService.new.call(current_user.account, Status.find(params[:id])).status.reload
- render action: :show
+ render :show
end
def unfavourite
UnfavouriteWorker.perform_async(current_user.account_id, @status.id)
- render action: :show
+ render :show
end
private
set_pagination_headers(next_path, prev_path)
- render action: :index
+ render :index
end
def public
set_pagination_headers(next_path, prev_path)
- render action: :index
+ render :index
end
def tag
set_pagination_headers(next_path, prev_path)
- render action: :index
+ render :index
end
private
ImportWorker.perform_async(@import.id)
redirect_to settings_import_path, notice: I18n.t('imports.success')
else
- render action: :show
+ render :show
end
end
if current_user.update(user_params.except(:notification_emails, :interactions, :setting_default_privacy, :setting_boost_modal, :setting_auto_play_gif))
redirect_to settings_preferences_path, notice: I18n.t('generic.changes_saved_msg')
else
- render action: :show
+ render :show
end
end
if @account.update(account_params)
redirect_to settings_profile_path, notice: I18n.t('generic.changes_saved_msg')
else
- render action: :show
+ render :show
end
end
@confirmation = Form::TwoFactorConfirmation.new
set_qr_code
flash.now[:alert] = I18n.t('two_factor_auth.wrong_code')
- render action: :new
+ render :new
end
end