-async function addFetchOutboxJob (account: AccountInstance, t: Transaction) {
- const jobPayload: ActivityPubHttpPayload = {
- uris: [ account.outboxUrl ]
+async function addFetchOutboxJob (actor: ActorModel) {
+ // Don't fetch ourselves
+ const serverActor = await getServerActor()
+ if (serverActor.id === actor.id) {
+ logger.error('Cannot fetch our own outbox!')
+ return undefined