mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Rewrite all remaining Github links
This commit is contained in:
@@ -148,7 +148,7 @@ func (m *Module) CallbackGETHandler(c *gin.Context) {
|
||||
// Since we require lowercase usernames at this point, lowercase the one
|
||||
// from the claims and use this to autofill the form with a suggestion.
|
||||
//
|
||||
// Pending https://github.com/superseriousbusiness/gotosocial/issues/1813
|
||||
// Pending https://codeberg.org/superseriousbusiness/gotosocial/issues/1813
|
||||
suggestedUsername := strings.ToLower(claims.PreferredUsername)
|
||||
|
||||
page := apiutil.WebPage{
|
||||
|
@@ -256,7 +256,7 @@ func (suite *FiltersTestSuite) postFilterWithExpiration(phrase *string, expiresI
|
||||
return filter
|
||||
}
|
||||
|
||||
// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() {
|
||||
title := "Form Sins"
|
||||
expiresInStr := ""
|
||||
@@ -264,7 +264,7 @@ func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() {
|
||||
suite.Nil(filter.ExpiresAt)
|
||||
}
|
||||
|
||||
// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPostFilterWithNullExpirationJSON() {
|
||||
requestJson := `{
|
||||
"phrase": "JSON Sins",
|
||||
|
@@ -287,7 +287,7 @@ func (suite *FiltersTestSuite) setFilterExpiration(id string, phrase *string, ex
|
||||
return filter
|
||||
}
|
||||
|
||||
// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() {
|
||||
filterKeyword := suite.testFilterKeywords["local_account_1_filter_1_keyword_1"]
|
||||
id := filterKeyword.ID
|
||||
@@ -306,7 +306,7 @@ func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() {
|
||||
suite.Nil(filter.ExpiresAt)
|
||||
}
|
||||
|
||||
// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateNullJSON() {
|
||||
filterKeyword := suite.testFilterKeywords["local_account_1_filter_1_keyword_1"]
|
||||
id := filterKeyword.ID
|
||||
|
@@ -319,7 +319,7 @@ func (suite *FiltersTestSuite) postFilterWithExpiration(title *string, expiresIn
|
||||
return filter
|
||||
}
|
||||
|
||||
// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() {
|
||||
title := "Form Crimes"
|
||||
expiresInStr := ""
|
||||
@@ -327,7 +327,7 @@ func (suite *FiltersTestSuite) TestPostFilterWithEmptyStringExpiration() {
|
||||
suite.Nil(filter.ExpiresAt)
|
||||
}
|
||||
|
||||
// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPostFilterWithNullExpirationJSON() {
|
||||
requestJson := `{
|
||||
"title": "JSON Crimes",
|
||||
|
@@ -359,7 +359,7 @@ func (suite *FiltersTestSuite) setFilterExpiration(id string, expiresIn *int, ex
|
||||
return filter
|
||||
}
|
||||
|
||||
// Regression test for https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() {
|
||||
id := suite.testFilters["local_account_1_filter_2"].ID
|
||||
|
||||
@@ -376,7 +376,7 @@ func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateEmptyString() {
|
||||
suite.Nil(filter.ExpiresAt)
|
||||
}
|
||||
|
||||
// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateNullJSON() {
|
||||
id := suite.testFilters["local_account_1_filter_3"].ID
|
||||
|
||||
@@ -395,7 +395,7 @@ func (suite *FiltersTestSuite) TestPutFilterUnsetExpirationDateNullJSON() {
|
||||
suite.Nil(filter.ExpiresAt)
|
||||
}
|
||||
|
||||
// Regression test related to https://github.com/superseriousbusiness/gotosocial/issues/3497
|
||||
// Regression test related to https://codeberg.org/superseriousbusiness/gotosocial/issues/3497
|
||||
func (suite *FiltersTestSuite) TestPutFilterUnalteredExpirationDateJSON() {
|
||||
id := suite.testFilters["local_account_1_filter_4"].ID
|
||||
|
||||
|
@@ -60,7 +60,7 @@ type InstanceConfigurationAccounts struct {
|
||||
// Currently not implemented, so this is hardcoded to 10.
|
||||
MaxFeaturedTags int `json:"max_featured_tags"`
|
||||
// The maximum number of profile fields allowed for each account.
|
||||
// Currently not configurable, so this is hardcoded to 6. (https://github.com/superseriousbusiness/gotosocial/issues/1876)
|
||||
// Currently not configurable, so this is hardcoded to 6. (https://codeberg.org/superseriousbusiness/gotosocial/issues/1876)
|
||||
MaxProfileFields int `json:"max_profile_fields"`
|
||||
}
|
||||
|
||||
|
@@ -43,7 +43,7 @@ type InstanceV2 struct {
|
||||
// Whether or not instance is running in DEBUG mode. Omitted if false.
|
||||
Debug *bool `json:"debug,omitempty"`
|
||||
// The URL for the source code of the software running on this instance, in keeping with AGPL license requirements.
|
||||
// example: https://github.com/superseriousbusiness/gotosocial
|
||||
// example: https://codeberg.org/superseriousbusiness/gotosocial
|
||||
SourceURL string `json:"source_url"`
|
||||
// Description of the instance.
|
||||
//
|
||||
|
Reference in New Issue
Block a user