mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 17:50:59 +00:00
21 lines
557 B
Swift
21 lines
557 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import Mastodon
|
|
|
|
extension PreferencesEndpoint: Stubbing {
|
|
func dataString(url: URL) -> String? {
|
|
switch self {
|
|
case .preferences:
|
|
return """
|
|
{
|
|
"posting:default:visibility": "public",
|
|
"posting:default:sensitive": false,
|
|
"posting:default:language": null,
|
|
"reading:expand:media": "default",
|
|
"reading:expand:spoilers": false
|
|
}
|
|
"""
|
|
}
|
|
}
|
|
}
|