mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
feat: Add preferred
field to socials (#100)
This commit is contained in:
parent
22e9cca00c
commit
24c8f60a70
@ -8,6 +8,7 @@ class SocialFields(BaseModel):
|
||||
|
||||
name: str
|
||||
url: str
|
||||
preferred: bool
|
||||
|
||||
|
||||
class SocialsResponseModel(BaseModel):
|
||||
|
20
config.py
20
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user