Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `.github/workflows/build-image.yml`: Upstream updated `docker/build-push-action`, and we a different config for `docker/metadata-action` so the lines directly above were different, but it's not a real conflict. Upgraded `docker/build-push-action` as upstream did. - `app/javascript/mastodon/features/compose/components/compose_form.js`: Upstream changed the codestyle near a line we had modified to accommodate configurable character count. Kept our change.
This commit is contained in:
		@@ -6,7 +6,7 @@ class Api::V1::NotificationsController < Api::BaseController
 | 
			
		||||
  before_action :require_user!
 | 
			
		||||
  after_action :insert_pagination_headers, only: :index
 | 
			
		||||
 | 
			
		||||
  DEFAULT_NOTIFICATIONS_LIMIT = 15
 | 
			
		||||
  DEFAULT_NOTIFICATIONS_LIMIT = 40
 | 
			
		||||
 | 
			
		||||
  def index
 | 
			
		||||
    @notifications = load_notifications
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,13 @@ class Settings::ApplicationsController < Settings::BaseController
 | 
			
		||||
 | 
			
		||||
  def update
 | 
			
		||||
    if @application.update(application_params)
 | 
			
		||||
      redirect_to settings_applications_path, notice: I18n.t('generic.changes_saved_msg')
 | 
			
		||||
      if @application.scopes_previously_changed?
 | 
			
		||||
        @access_token = current_user.token_for_app(@application)
 | 
			
		||||
        @access_token.destroy
 | 
			
		||||
        redirect_to settings_application_path(@application), notice: I18n.t('applications.token_regenerated')
 | 
			
		||||
      else
 | 
			
		||||
        redirect_to settings_application_path(@application), notice: I18n.t('generic.changes_saved_msg')
 | 
			
		||||
      end
 | 
			
		||||
    else
 | 
			
		||||
      render :show
 | 
			
		||||
    end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user