Select the types of activity you want to include in your feed.
feat: allow max prefs to be configured
some people (me) have a large amount of prefs and moving from ref pds to tranquil ment i lost a few of these. so in this pr i bumped the max prefs to 1000 and made it configurable via the config
···451451 /// Maximum allowed blob size in bytes (default 10 GiB).
452452 #[config(env = "MAX_BLOB_SIZE", default = 10_737_418_240u64)]
453453 pub max_blob_size: u64,
454454+455455+ /// Maximum allowed number of preferences
456456+ #[config(env = "MAX_PREFERENCES_COUNT", default = 1000)]
457457+ pub max_preferences_count: usize,
454458}
455459456460impl ServerConfig {
+7
example.toml
···8989# Default value: 10737418240
9090#max_blob_size = 10737418240
91919292+# Maximum allowed number of preferences
9393+#
9494+# Can also be specified via environment variable `MAX_PREFERENCES_COUNT`.
9595+#
9696+# Default value: 1000
9797+#max_preferences_count = 1000
9898+9299[frontend]
93100# Whether to enable the built in serving of the frontend.
94101#