mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-26 18:11:06 +00:00
75 lines
3.3 KiB
Swift
75 lines
3.3 KiB
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import Mastodon
|
|
|
|
// swiftlint:disable line_length
|
|
let officialInstanceJSON = #"""
|
|
{
|
|
"uri": "mastodon.social",
|
|
"title": "Mastodon",
|
|
"short_description": "Server run by the main developers of the project <img draggable=\"false\" alt=\"\ud83d\udc18\" class=\"emojione\" src=\"https://mastodon.social/emoji/1f418.svg\" /> It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!",
|
|
"description": "Server run by the main developers of the project <img draggable=\"false\" alt=\"\ud83d\udc18\" class=\"emojione\" src=\"https://mastodon.social/emoji/1f418.svg\" /> It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!",
|
|
"email": "staff@mastodon.social",
|
|
"version": "3.2.0",
|
|
"urls": {
|
|
"streaming_api": "wss://mastodon.social"
|
|
},
|
|
"stats": {
|
|
"user_count": 528991,
|
|
"status_count": 24588857,
|
|
"domain_count": 14857
|
|
},
|
|
"thumbnail": "https://files.mastodon.social/site_uploads/files/000/000/001/original/vlcsnap-2018-08-27-16h43m11s127.png",
|
|
"languages": [
|
|
"en"
|
|
],
|
|
"registrations": false,
|
|
"approval_required": false,
|
|
"invites_enabled": true,
|
|
"contact_account": {
|
|
"id": "1",
|
|
"username": "Gargron",
|
|
"acct": "Gargron",
|
|
"display_name": "Eugen",
|
|
"locked": false,
|
|
"bot": false,
|
|
"discoverable": true,
|
|
"group": false,
|
|
"created_at": "2016-03-16T14:34:26.392Z",
|
|
"note": "<p>Developer of Mastodon and administrator of mastodon.social. I post service announcements, development updates, and personal stuff.</p>",
|
|
"url": "https://mastodon.social/@Gargron",
|
|
"avatar": "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg",
|
|
"avatar_static": "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg",
|
|
"header": "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png",
|
|
"header_static": "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png",
|
|
"followers_count": 425409,
|
|
"following_count": 440,
|
|
"statuses_count": 66170,
|
|
"last_status_at": "2020-07-31",
|
|
"emojis": [],
|
|
"fields": [
|
|
{
|
|
"name": "Patreon",
|
|
"value": "<a href=\"https://www.patreon.com/mastodon\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"\">patreon.com/mastodon</span><span class=\"invisible\"></span></a>",
|
|
"verified_at": null
|
|
},
|
|
{
|
|
"name": "Homepage",
|
|
"value": "<a href=\"https://zeonfederated.com\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">zeonfederated.com</span><span class=\"invisible\"></span></a>",
|
|
"verified_at": "2019-07-15T18:29:57.191+00:00"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
"""#
|
|
|
|
extension InstanceEndpoint: Stubbing {
|
|
|
|
func dataString(url: URL) -> String? {
|
|
switch self {
|
|
case .instance: return officialInstanceJSON
|
|
}
|
|
}
|
|
}
|
|
// swiftlint:enable line_length
|