Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Feb 7, 2020
1 parent 4efe756 commit bb887a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remote/activitypub/models/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
if (resolver == null) resolver = new Resolver();

const object = await resolver.resolve(value);
if (!object.attributedTo) object.attributedTo = activity.actor;
if (!object.attributedTo) object.attributedTo = activity?.actor;

const entryUri = getApId(value);

Expand Down

0 comments on commit bb887a3

Please sign in to comment.