AccountAppSettingsService.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Services\Account;
  3. use App\Models\UserAppSettings;
  4. class AccountAppSettingsService
  5. {
  6. public static function default()
  7. {
  8. return [
  9. 'timelines' => [
  10. // Show public timeline feed
  11. 'show_public' => false,
  12. // Show network timeline feed
  13. 'show_network' => false,
  14. // Hide likes and share counts
  15. 'hide_likes_shares' => false,
  16. ],
  17. 'media' => [
  18. // Hide media on Public/Network timelines behind CW
  19. 'hide_public_behind_cw' => true,
  20. // Always show media with CW
  21. 'always_show_cw' => false,
  22. // Show alt text if present below media
  23. 'show_alt_text' => false,
  24. ],
  25. 'appearance' => [
  26. // Use in-app browser when opening links
  27. 'links_use_in_app_browser' => true,
  28. // App theme, can be 'light', 'dark' or 'system'
  29. 'theme' => 'system',
  30. ]
  31. ];
  32. }
  33. }