mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-26 05:23:32 -06:00
[feature/frontend] Add debug sections to settings panel (#2950)
* [feature/frontend] Add debug sections to settings panel * max-width * swagger
This commit is contained in:
parent
04bcde08a1
commit
d79c2f2688
15 changed files with 395 additions and 22 deletions
|
|
@ -26,6 +26,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"codeberg.org/gruf/go-debug"
|
||||
apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/config"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
|
|
@ -1200,6 +1201,10 @@ func (c *Converter) InstanceToAPIV1Instance(ctx context.Context, i *gtsmodel.Ins
|
|||
instance.Version = toMastodonVersion(instance.Version)
|
||||
}
|
||||
|
||||
if debug.DEBUG {
|
||||
instance.Debug = util.Ptr(true)
|
||||
}
|
||||
|
||||
// configuration
|
||||
instance.Configuration.Statuses.MaxCharacters = config.GetStatusesMaxChars()
|
||||
instance.Configuration.Statuses.MaxMediaAttachments = config.GetStatusesMediaMaxFiles()
|
||||
|
|
@ -1307,6 +1312,10 @@ func (c *Converter) InstanceToAPIV2Instance(ctx context.Context, i *gtsmodel.Ins
|
|||
instance.Version = toMastodonVersion(instance.Version)
|
||||
}
|
||||
|
||||
if debug.DEBUG {
|
||||
instance.Debug = util.Ptr(true)
|
||||
}
|
||||
|
||||
// thumbnail
|
||||
thumbnail := apimodel.InstanceV2Thumbnail{}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue