kopie van
https://gitea.phreedom.club/localhost_frssoft/bloat.git
gesynchroniseerd 2025-07-01 23:34:16 +00:00
Added page about instance
Deze commit is opgenomen in:
bovenliggende
fe304f60e9
commit
7dd90ac015
7 gewijzigde bestanden met toevoegingen van 81 en 0 verwijderingen
|
@ -17,6 +17,8 @@ type Instance struct {
|
|||
Stats *InstanceStats `json:"stats,omitempty"`
|
||||
Languages []string `json:"languages"`
|
||||
ContactAccount *Account `json:"account"`
|
||||
MaxTootChars *int64 `json:"max_toot_chars"`
|
||||
Pleroma *PleromaInstance `json:"pleroma"`
|
||||
}
|
||||
|
||||
// InstanceStats hold information for mastodon instance stats.
|
||||
|
@ -26,6 +28,16 @@ type InstanceStats struct {
|
|||
DomainCount int64 `json:"domain_count"`
|
||||
}
|
||||
|
||||
// For about instance if this Pleroma
|
||||
type PleromaInstance struct {
|
||||
MetaData MetaData `json:"metadata"`
|
||||
}
|
||||
|
||||
type MetaData struct {
|
||||
Features *[]string `json:"features"`
|
||||
}
|
||||
|
||||
|
||||
// GetInstance return Instance.
|
||||
func (c *Client) GetInstance(ctx context.Context) (*Instance, error) {
|
||||
var instance Instance
|
||||
|
|
Laden…
Tabel toevoegen
Link toevoegen
Verwijs in een nieuwe issue