feat: Add preferred field to socials (#100)

This commit is contained in:
oSumAtrIX 2023-10-10 18:39:58 +02:00 committed by GitHub
parent 22e9cca00c
commit 24c8f60a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 8 deletions

View File

@ -8,6 +8,7 @@ class SocialFields(BaseModel):
name: str
url: str
preferred: bool
class SocialsResponseModel(BaseModel):

View File

@ -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