mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 21:02:26 -05:00
[feature] Implement /api/v2/instance endpoint (#1409)
* interim: start adding /api/v2/instance * finish up
This commit is contained in:
parent
4ee4cd2da1
commit
382512a5a6
109 changed files with 1660 additions and 944 deletions
|
|
@ -57,7 +57,7 @@ type ogMeta struct {
|
|||
// the base root of an instance. It also serves as a
|
||||
// foundation for building account / status ogMeta on
|
||||
// top of.
|
||||
func ogBase(instance *apimodel.Instance) *ogMeta {
|
||||
func ogBase(instance *apimodel.InstanceV1) *ogMeta {
|
||||
var locale string
|
||||
if len(instance.Languages) > 0 {
|
||||
locale = instance.Languages[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue