fix: tests, save actor URL into userRemote hash

This commit is contained in:
Julian Lam
2024-04-03 13:49:27 -04:00
parent 1084f21d47
commit 59709a3cb2
3 changed files with 48 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ async function assertRelation(post) {
// Local user is mentioned
const { tag } = post._activitypub;
let uids = [];
if (tag.length) {
if (tag && tag.length) {
const slugs = tag.reduce((slugs, tag) => {
if (tag.type === 'Mention') {
const [slug, hostname] = tag.name.slice(1).split('@');