2020-08-08 04:03:41 +02:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
2020-08-31 01:33:11 +02:00
|
|
|
import Mastodon
|
2020-08-08 04:03:41 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
"""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|