diff --git a/api/models/socials.py b/api/models/socials.py index 1a0929f..45edad0 100644 --- a/api/models/socials.py +++ b/api/models/socials.py @@ -8,6 +8,7 @@ class SocialFields(BaseModel): name: str url: str + preferred: bool class SocialsResponseModel(BaseModel): diff --git a/config.py b/config.py index b59ab1f..51bebd9 100644 --- a/config.py +++ b/config.py @@ -55,14 +55,18 @@ compat_repositories: list = [ # Social Links -social_links: list[dict[str, str]] = [ - {"name": "Website", "url": "https://revanced.app"}, - {"name": "GitHub", "url": "https://github.com/revanced"}, - {"name": "Twitter", "url": "https://twitter.com/revancedapp"}, - {"name": "Discord", "url": "https://revanced.app/discord"}, - {"name": "Reddit", "url": "https://www.reddit.com/r/revancedapp"}, - {"name": "Telegram", "url": "https://t.me/app_revanced"}, - {"name": "YouTube", "url": "https://www.youtube.com/@ReVanced"}, +social_links: list[dict[str, str | bool]] = [ + {"name": "Website", "url": "https://revanced.app", "preferred": True}, + {"name": "GitHub", "url": "https://github.com/revanced", "preferred": False}, + {"name": "Twitter", "url": "https://twitter.com/revancedapp", "preferred": False}, + {"name": "Discord", "url": "https://revanced.app/discord", "preferred": True}, + { + "name": "Reddit", + "url": "https://www.reddit.com/r/revancedapp", + "preferred": False, + }, + {"name": "Telegram", "url": "https://t.me/app_revanced", "preferred": False}, + {"name": "YouTube", "url": "https://www.youtube.com/@ReVanced", "preferred": False}, ] # Donation info