Skip to content

Commit

Permalink
fix: use iso string in actor published prop
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyUnderStars committed Dec 14, 2024
1 parent e5e33d8 commit 79e36fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/util/activitypub/transformers/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
} from "../../../entity";
import { getExternalPathFromActor } from "../../../sender";
import { config } from "../../config";
import { createXsdDate } from "../../misc";
import { APError } from "../error";
import { InstanceActor } from "../instanceActor";

Expand Down Expand Up @@ -71,7 +70,7 @@ export const buildAPActor = (actor: Actor): APActor => {
id: `${instance_url.origin}${id}`,
url: `${webapp_url.origin}${id}`,

published: createXsdDate(actor.created_date),
published: actor.created_date.toISOString(),

inbox,
outbox,
Expand Down
3 changes: 1 addition & 2 deletions src/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ export * from "./entity";
export * from "./events";
export * from "./httperror";
export * from "./log";
export * from "./misc";
export * from "./permission";
export * from "./route";
export * from "./rsa";
export * from "./token";
export * from "./types";
export * from "./url";
export * from "./permission";
3 changes: 0 additions & 3 deletions src/util/misc.ts

This file was deleted.

0 comments on commit 79e36fa

Please sign in to comment.