* Add option to show only local toots in timeline preview Right know, toots from all the known fediverse are shown in the main page of an instance. That however doesn't reflect the instance itself. With this option the admin may choose to display only local toots so that users checking the instance get a better idea of internal conversations. * Fix issues pointed by codeclimate and eslint * Add default message for community timeline * Update pl.yml
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			971 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			971 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| class Form::AdminSettings
 | |
|   include ActiveModel::Model
 | |
| 
 | |
|   delegate(
 | |
|     :site_contact_username,
 | |
|     :site_contact_username=,
 | |
|     :site_contact_email,
 | |
|     :site_contact_email=,
 | |
|     :site_title,
 | |
|     :site_title=,
 | |
|     :site_description,
 | |
|     :site_description=,
 | |
|     :site_extended_description,
 | |
|     :site_extended_description=,
 | |
|     :site_terms,
 | |
|     :site_terms=,
 | |
|     :open_registrations,
 | |
|     :open_registrations=,
 | |
|     :closed_registrations_message,
 | |
|     :closed_registrations_message=,
 | |
|     :open_deletion,
 | |
|     :open_deletion=,
 | |
|     :timeline_preview,
 | |
|     :timeline_preview=,
 | |
|     :show_staff_badge,
 | |
|     :show_staff_badge=,
 | |
|     :bootstrap_timeline_accounts,
 | |
|     :bootstrap_timeline_accounts=,
 | |
|     :min_invite_role,
 | |
|     :min_invite_role=,
 | |
|     :activity_api_enabled,
 | |
|     :activity_api_enabled=,
 | |
|     :peers_api_enabled,
 | |
|     :peers_api_enabled=,
 | |
|     :show_known_fediverse_at_about_page,
 | |
|     :show_known_fediverse_at_about_page=,
 | |
|     to: Setting
 | |
|   )
 | |
| end
 |