diff options
| author | 2025-04-26 15:34:10 +0200 | |
|---|---|---|
| committer | 2025-04-26 15:38:43 +0200 | |
| commit | ab10266bff8d3dea1655e5f98a932efa2474bdb6 (patch) | |
| tree | def81628d7a7c81b8ad0c971fb02ebc945eca75c /internal/cache | |
| parent | [chore] Set up Github to be a mirror (diff) | |
| download | gotosocial-ab10266bff8d3dea1655e5f98a932efa2474bdb6.tar.xz | |
[feature] Move to code.superseriousbusiness.org
Diffstat (limited to 'internal/cache')
| -rw-r--r-- | internal/cache/cache.go | 8 | ||||
| -rw-r--r-- | internal/cache/db.go | 8 | ||||
| -rw-r--r-- | internal/cache/domain/domain_test.go | 2 | ||||
| -rw-r--r-- | internal/cache/headerfilter/filter.go | 4 | ||||
| -rw-r--r-- | internal/cache/invalidate.go | 4 | ||||
| -rw-r--r-- | internal/cache/size.go | 10 | ||||
| -rw-r--r-- | internal/cache/timeline.go | 4 | ||||
| -rw-r--r-- | internal/cache/timeline/preload.go | 2 | ||||
| -rw-r--r-- | internal/cache/timeline/status.go | 14 | ||||
| -rw-r--r-- | internal/cache/timeline/status_test.go | 4 | ||||
| -rw-r--r-- | internal/cache/timeline/timeline.go | 4 | ||||
| -rw-r--r-- | internal/cache/util.go | 2 | ||||
| -rw-r--r-- | internal/cache/visibility.go | 4 |
13 files changed, 35 insertions, 35 deletions
diff --git a/internal/cache/cache.go b/internal/cache/cache.go index e3fd0d1fe..d05b85a15 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -20,11 +20,11 @@ package cache import ( "time" + "code.superseriousbusiness.org/gotosocial/internal/cache/headerfilter" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-cache/v3/ttl" - "github.com/superseriousbusiness/gotosocial/internal/cache/headerfilter" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/log" ) type Caches struct { diff --git a/internal/cache/db.go b/internal/cache/db.go index 82cd9ac5f..31e78f0a5 100644 --- a/internal/cache/db.go +++ b/internal/cache/db.go @@ -20,11 +20,11 @@ package cache import ( "sync/atomic" + "code.superseriousbusiness.org/gotosocial/internal/cache/domain" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-structr" - "github.com/superseriousbusiness/gotosocial/internal/cache/domain" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" ) type DBCaches struct { diff --git a/internal/cache/domain/domain_test.go b/internal/cache/domain/domain_test.go index 974425b7c..a3cbbca78 100644 --- a/internal/cache/domain/domain_test.go +++ b/internal/cache/domain/domain_test.go @@ -21,7 +21,7 @@ import ( "errors" "testing" - "github.com/superseriousbusiness/gotosocial/internal/cache/domain" + "code.superseriousbusiness.org/gotosocial/internal/cache/domain" ) func TestCache(t *testing.T) { diff --git a/internal/cache/headerfilter/filter.go b/internal/cache/headerfilter/filter.go index 96b6e757f..afab0b3f7 100644 --- a/internal/cache/headerfilter/filter.go +++ b/internal/cache/headerfilter/filter.go @@ -22,8 +22,8 @@ import ( "net/http" "sync/atomic" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/headerfilter" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/headerfilter" ) // Cache provides a means of caching headerfilter.Filters in diff --git a/internal/cache/invalidate.go b/internal/cache/invalidate.go index 949238ec6..3512bb51e 100644 --- a/internal/cache/invalidate.go +++ b/internal/cache/invalidate.go @@ -18,8 +18,8 @@ package cache import ( - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/util" ) // Below are cache invalidation hooks between other caches, diff --git a/internal/cache/size.go b/internal/cache/size.go index 9a30d5f08..2d9acc7ba 100644 --- a/internal/cache/size.go +++ b/internal/cache/size.go @@ -23,13 +23,13 @@ import ( "time" "unsafe" + "code.superseriousbusiness.org/gotosocial/internal/ap" + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/util" "codeberg.org/gruf/go-cache/v3/simple" "github.com/DmitriyVTitov/size" - "github.com/superseriousbusiness/gotosocial/internal/ap" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/util" ) const ( diff --git a/internal/cache/timeline.go b/internal/cache/timeline.go index 3e6a68558..1709751da 100644 --- a/internal/cache/timeline.go +++ b/internal/cache/timeline.go @@ -18,8 +18,8 @@ package cache import ( - "github.com/superseriousbusiness/gotosocial/internal/cache/timeline" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/cache/timeline" + "code.superseriousbusiness.org/gotosocial/internal/log" ) type TimelineCaches struct { diff --git a/internal/cache/timeline/preload.go b/internal/cache/timeline/preload.go index b941a8b0c..c2daa2fc6 100644 --- a/internal/cache/timeline/preload.go +++ b/internal/cache/timeline/preload.go @@ -21,7 +21,7 @@ import ( "sync" "sync/atomic" - "github.com/superseriousbusiness/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/log" ) // preloader provides a means of synchronising the diff --git a/internal/cache/timeline/status.go b/internal/cache/timeline/status.go index 071fc5a36..56d90e422 100644 --- a/internal/cache/timeline/status.go +++ b/internal/cache/timeline/status.go @@ -23,13 +23,13 @@ import ( "codeberg.org/gruf/go-structr" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtserror" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" - "github.com/superseriousbusiness/gotosocial/internal/log" - "github.com/superseriousbusiness/gotosocial/internal/paging" - "github.com/superseriousbusiness/gotosocial/internal/util" - "github.com/superseriousbusiness/gotosocial/internal/util/xslices" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtserror" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" + "code.superseriousbusiness.org/gotosocial/internal/log" + "code.superseriousbusiness.org/gotosocial/internal/paging" + "code.superseriousbusiness.org/gotosocial/internal/util" + "code.superseriousbusiness.org/gotosocial/internal/util/xslices" ) // repeatBoostDepth determines the minimum count diff --git a/internal/cache/timeline/status_test.go b/internal/cache/timeline/status_test.go index 3e53d8256..6a288d2ea 100644 --- a/internal/cache/timeline/status_test.go +++ b/internal/cache/timeline/status_test.go @@ -21,10 +21,10 @@ import ( "slices" "testing" + apimodel "code.superseriousbusiness.org/gotosocial/internal/api/model" + "code.superseriousbusiness.org/gotosocial/internal/gtsmodel" "codeberg.org/gruf/go-structr" "github.com/stretchr/testify/assert" - apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" - "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) var testStatusMeta = []*StatusMeta{ diff --git a/internal/cache/timeline/timeline.go b/internal/cache/timeline/timeline.go index 4f8797e82..a6eb31fc2 100644 --- a/internal/cache/timeline/timeline.go +++ b/internal/cache/timeline/timeline.go @@ -20,9 +20,9 @@ package timeline import ( "time" + "code.superseriousbusiness.org/gotosocial/internal/id" + "code.superseriousbusiness.org/gotosocial/internal/paging" "codeberg.org/gruf/go-structr" - "github.com/superseriousbusiness/gotosocial/internal/id" - "github.com/superseriousbusiness/gotosocial/internal/paging" ) // plus1hULID returns a ULID for now+1h. diff --git a/internal/cache/util.go b/internal/cache/util.go index ceb053e34..783fc2e24 100644 --- a/internal/cache/util.go +++ b/internal/cache/util.go @@ -20,8 +20,8 @@ package cache import ( "errors" + "code.superseriousbusiness.org/gotosocial/internal/db" errorsv2 "codeberg.org/gruf/go-errors/v2" - "github.com/superseriousbusiness/gotosocial/internal/db" ) // SentinelError is an error that can be returned and checked against to indicate a non-permanent diff --git a/internal/cache/visibility.go b/internal/cache/visibility.go index a424ca5ac..63927cf08 100644 --- a/internal/cache/visibility.go +++ b/internal/cache/visibility.go @@ -18,9 +18,9 @@ package cache import ( + "code.superseriousbusiness.org/gotosocial/internal/config" + "code.superseriousbusiness.org/gotosocial/internal/log" "codeberg.org/gruf/go-structr" - "github.com/superseriousbusiness/gotosocial/internal/config" - "github.com/superseriousbusiness/gotosocial/internal/log" ) type VisibilityCache struct { |
