Skip to content

Node.js based forum software built for the modern web

test: fix regression from 5802c7ddd9506a4e296f6dbdf2d9a32621c7f4ef

Julian Lam5b118904c954
diff --git a/test/activitypub/helpers.js b/test/activitypub/helpers.js
index 57d1d1826f..a995866838 100644
--- a/test/activitypub/helpers.js
+++ b/test/activitypub/helpers.js
@@ -144,7 +144,7 @@ Helpers.mocks.like = (override = {}) => {
const activity = {
'@context': 'https://www.w3.org/ns/activitystreams',
- id: `${Helpers.mocks._baseUrl}/like/${encodeURIComponent(object.id)}`,
+ id: `${Helpers.mocks._baseUrl}/like/${encodeURIComponent(object.id || object)}`,
type: 'Like',
actor,
object,