import.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. return [
  3. /*
  4. * Import from Instagram
  5. *
  6. * Allow users to import posts from Instagram
  7. *
  8. */
  9. 'instagram' => [
  10. 'enabled' => env('PF_IMPORT_FROM_INSTAGRAM', true),
  11. 'limits' => [
  12. // Limit max number of posts allowed to import
  13. 'max_posts' => env('PF_IMPORT_IG_MAX_POSTS', 1000),
  14. // Limit max import attempts allowed, set to -1 for unlimited
  15. 'max_attempts' => env('PF_IMPORT_IG_MAX_ATTEMPTS', -1),
  16. ],
  17. // Allow archived posts that will be archived upon import
  18. 'allow_archived_posts' => false,
  19. // Allow video posts to be imported
  20. 'allow_video_posts' => env('PF_IMPORT_IG_ALLOW_VIDEO_POSTS', true),
  21. // Allow webp posts to be imported
  22. 'allow_image_webp' => env('PF_IMPORT_IG_ALLOW_IMAGE_WEBP', true),
  23. 'permissions' => [
  24. // Limit to admin accounts only
  25. 'admins_only' => env('PF_IMPORT_IG_PERM_ADMIN_ONLY', false),
  26. // Limit to admin accounts and local accounts they follow only
  27. 'admin_follows_only' => env('PF_IMPORT_IG_PERM_ADMIN_FOLLOWS_ONLY', false),
  28. // Limit to accounts older than X in days
  29. 'min_account_age' => env('PF_IMPORT_IG_PERM_MIN_ACCOUNT_AGE', 1),
  30. // Limit to accounts with a min follower count of X
  31. 'min_follower_count' => env('PF_IMPORT_IG_PERM_MIN_FOLLOWER_COUNT', 0),
  32. // Limit to specific user ids, in comma separated format
  33. 'user_ids' => env('PF_IMPORT_IG_PERM_ONLY_USER_IDS', null),
  34. ],
  35. 'storage' => [
  36. 'cloud' => [
  37. 'enabled' => env('PF_IMPORT_IG_CLOUD_STORAGE', env('PF_ENABLE_CLOUD', false)),
  38. ]
  39. ]
  40. ]
  41. ];