4691b0068c
* Remove the search button from UI header when logged out (#25631) * Change account search to match by text when opted-in (#25599) Co-authored-by: Eugen Rochko <eugen@zeonfederated.com> * Fix ResolveURLService not resolving local URLs for remote content (#25637) * Remove `pkg-config` gem dependency (#25615) * Update Crowdin configuration file * Fix onboarding prompt being displayed because of disconnection gaps (#25617) * Use an Immutable Record as the root state (#25584) * Add index to backups on `user_id` column (#25647) * Fix rails `rewhere` deprecation warning in directories api controller (#25625) * Remove unused routes (#25578) * Fixing an issue with a missing argument (#2261) undefined * Update uri to version 0.12.2 (CVE fix) (#25657) * Change local and federated timelines to be in a single firehose column (#25641) * Fix HTTP 500 in `/api/v1/emails/check_confirmation` (#25595) * Rails 7 update (#24241) * Change dropdown icon above compose form from ellipsis to bars in web UI (#25661) * Prevent duplicate concurrent calls of `/api/*/instance` in web UI (#25663) * Revert "Rails 7 update" (#25667) * [Glitch] Remove the search button from UI header when logged out Port285a691936
to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com> * [Glitch] Fix onboarding prompt being displayed because of disconnection gaps Port9934949fc4
to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com> * [Glitch] Use an Immutable Record as the root state Port78ba12f0bf
to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com> * [Glitch] Change local and federated timelines to be in a single firehose column Portcea9db5a0b
to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com> * [Glitch] Change dropdown icon above compose form from ellipsis to bars in web UI Port0512537eb6
to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com> * [Glitch] Prevent duplicate concurrent calls of `/api/*/instance` in web UI Port5b46345459
to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com> * Show local-only posts in “All” by default, and add back option to toggle it * Fix showing local only toots in "All" (#2265) * Fix warnings about missing dependency in hooks Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> * Add `allowLocalOnly` to timelineId Without this local-only toots will never be loaded. feedType is checked to be public to not show local-only toots in the "Remote" tab. Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> --------- Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> * Add regex filter back to firehose (#2266) * Add regex filter back to firehose The regex filter will apply to all tabs and not be automatically applied when pinned. Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> * Keep regex when pinned Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> --------- Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> --------- Signed-off-by: Claire <claire.github-309c@sitedethib.com> Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> Co-authored-by: Claire <claire.github-309c@sitedethib.com> Co-authored-by: jsgoldstein <jakegoldstein95@gmail.com> Co-authored-by: Eugen Rochko <eugen@zeonfederated.com> Co-authored-by: Renaud Chaput <renchap@gmail.com> Co-authored-by: Matt Jankowski <matt@jankowski.online> Co-authored-by: Vivianne <puttabutta@gmail.com> Co-authored-by: Daniel M Brasil <danielmbrasil@protonmail.com> Co-authored-by: mogaminsk <mgmnjp@icloud.com> Co-authored-by: Plastikmensch <Plastikmensch@users.noreply.github.com>
206 lines
4.7 KiB
Ruby
206 lines
4.7 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
namespace :admin do
|
|
get '/dashboard', to: 'dashboard#index'
|
|
|
|
resources :domain_allows, only: [:new, :create, :destroy]
|
|
resources :domain_blocks, only: [:new, :create, :destroy, :update, :edit] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :export_domain_allows, only: [:new] do
|
|
collection do
|
|
get :export, constraints: { format: :csv }
|
|
post :import
|
|
end
|
|
end
|
|
|
|
resources :export_domain_blocks, only: [:new] do
|
|
collection do
|
|
get :export, constraints: { format: :csv }
|
|
post :import
|
|
end
|
|
end
|
|
|
|
resources :email_domain_blocks, only: [:index, :new, :create] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :action_logs, only: [:index]
|
|
resources :warning_presets, except: [:new, :show]
|
|
|
|
resources :announcements, except: [:show] do
|
|
member do
|
|
post :publish
|
|
post :unpublish
|
|
end
|
|
end
|
|
|
|
get '/settings', to: redirect('/admin/settings/branding')
|
|
get '/settings/edit', to: redirect('/admin/settings/branding')
|
|
|
|
namespace :settings do
|
|
resource :branding, only: [:show, :update], controller: 'branding'
|
|
resource :registrations, only: [:show, :update], controller: 'registrations'
|
|
resource :content_retention, only: [:show, :update], controller: 'content_retention'
|
|
resource :about, only: [:show, :update], controller: 'about'
|
|
resource :appearance, only: [:show, :update], controller: 'appearance'
|
|
resource :discovery, only: [:show, :update], controller: 'discovery'
|
|
resource :other, only: [:show, :update], controller: 'other'
|
|
end
|
|
|
|
resources :site_uploads, only: [:destroy]
|
|
|
|
resources :invites, only: [:index, :create, :destroy] do
|
|
collection do
|
|
post :deactivate_all
|
|
end
|
|
end
|
|
|
|
resources :relays, only: [:index, :new, :create, :destroy] do
|
|
member do
|
|
post :enable
|
|
post :disable
|
|
end
|
|
end
|
|
|
|
resources :instances, only: [:index, :show, :destroy], constraints: { id: %r{[^/]+} } do
|
|
member do
|
|
post :clear_delivery_errors
|
|
post :restart_delivery
|
|
post :stop_delivery
|
|
end
|
|
end
|
|
|
|
resources :rules, only: [:index, :create, :edit, :update, :destroy]
|
|
|
|
resources :webhooks do
|
|
member do
|
|
post :enable
|
|
post :disable
|
|
end
|
|
|
|
resource :secret, only: [], controller: 'webhooks/secrets' do
|
|
post :rotate
|
|
end
|
|
end
|
|
|
|
resources :reports, only: [:index, :show] do
|
|
resources :actions, only: [:create], controller: 'reports/actions' do
|
|
collection do
|
|
post :preview
|
|
end
|
|
end
|
|
|
|
member do
|
|
post :assign_to_self
|
|
post :unassign
|
|
post :reopen
|
|
post :resolve
|
|
end
|
|
end
|
|
|
|
resources :report_notes, only: [:create, :destroy]
|
|
|
|
resources :accounts, only: [:index, :show, :destroy] do
|
|
member do
|
|
post :enable
|
|
post :unsensitive
|
|
post :unsilence
|
|
post :unsuspend
|
|
post :redownload
|
|
post :remove_avatar
|
|
post :remove_header
|
|
post :memorialize
|
|
post :approve
|
|
post :reject
|
|
post :unblock_email
|
|
end
|
|
|
|
collection do
|
|
post :batch
|
|
end
|
|
|
|
resource :change_email, only: [:show, :update]
|
|
resource :reset, only: [:create]
|
|
resource :action, only: [:new, :create], controller: 'account_actions'
|
|
|
|
resources :statuses, only: [:index, :show] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :relationships, only: [:index]
|
|
|
|
resource :confirmation, only: [:create] do
|
|
collection do
|
|
post :resend
|
|
end
|
|
end
|
|
end
|
|
|
|
resources :users, only: [] do
|
|
resource :two_factor_authentication, only: [:destroy], controller: 'users/two_factor_authentications'
|
|
resource :role, only: [:show, :update], controller: 'users/roles'
|
|
end
|
|
|
|
resources :custom_emojis, only: [:index, :new, :create] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :ip_blocks, only: [:index, :new, :create] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :roles, except: [:show]
|
|
resources :account_moderation_notes, only: [:create, :destroy]
|
|
resource :follow_recommendations, only: [:show, :update]
|
|
resources :tags, only: [:show, :update]
|
|
|
|
namespace :trends do
|
|
resources :links, only: [:index] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :tags, only: [:index] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
resources :statuses, only: [:index] do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
|
|
namespace :links do
|
|
resources :preview_card_providers, only: [:index], path: :publishers do
|
|
collection do
|
|
post :batch
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
namespace :disputes do
|
|
resources :appeals, only: [:index] do
|
|
member do
|
|
post :approve
|
|
post :reject
|
|
end
|
|
end
|
|
end
|
|
end
|