diff --git a/src/activitypub/index.ts b/src/activitypub/index.ts index 7513bd2f..9e2d8a3e 100644 --- a/src/activitypub/index.ts +++ b/src/activitypub/index.ts @@ -1 +1,2 @@ export * from "./Server"; +export * from "./util"; diff --git a/src/activitypub/routes/channel/#channel_id/followers.ts b/src/activitypub/routes/channel/#channel_id/followers.ts index 248e2c2c..04b87eac 100644 --- a/src/activitypub/routes/channel/#channel_id/followers.ts +++ b/src/activitypub/routes/channel/#channel_id/followers.ts @@ -1,6 +1,6 @@ +import { makeOrderedCollection } from "@spacebar/ap"; import { route } from "@spacebar/api"; import { Config, Member } from "@spacebar/util"; -import { makeOrderedCollection } from "activitypub/util/OrderedCollection"; import { Router } from "express"; const router = Router(); diff --git a/src/activitypub/routes/channel/#channel_id/outbox.ts b/src/activitypub/routes/channel/#channel_id/outbox.ts index f5dbab3a..0e4cd5ea 100644 --- a/src/activitypub/routes/channel/#channel_id/outbox.ts +++ b/src/activitypub/routes/channel/#channel_id/outbox.ts @@ -1,6 +1,6 @@ +import { makeOrderedCollection } from "@spacebar/ap"; import { route } from "@spacebar/api"; import { Config, Message, Snowflake } from "@spacebar/util"; -import { makeOrderedCollection } from "activitypub/util/OrderedCollection"; import { Router } from "express"; import { FindManyOptions, FindOperator, LessThan, MoreThan } from "typeorm"; diff --git a/src/activitypub/util/index.ts b/src/activitypub/util/index.ts new file mode 100644 index 00000000..7204e7ae --- /dev/null +++ b/src/activitypub/util/index.ts @@ -0,0 +1 @@ +export * from "./OrderedCollection";