Skip to content

Node.js based forum software built for the modern web

debug: additional logging

Julian Lam08f8babd9fe5
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index 270fed40a2..31ec27ce46 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -64,6 +64,8 @@ inbox.like = async (req) => {
throw new Error('[[error:activitypub.invalid-id]]');
}
+ winston.info(`[activitypub/inbox/like] id ${id} via ${actor}`);
+
await posts.upvote(id, actor);
};
@@ -98,6 +100,8 @@ inbox.announce = async (req) => {
await topics.updateLastPostTime(tid, timestamp);
}
+ winston.info(`[activitypub/inbox/announce] Parsing id ${pid}`);
+
// No double-announce allowed
const existing = await topics.events.find(tid, {
type: 'announce',
@@ -220,6 +224,8 @@ inbox.undo = async (req) => {
const { type: localType, id } = await helpers.resolveLocalId(object.object);
+ winston.info(`[activitypub/inbox/undo] ${type} ${localType} ${id} via ${actor}`);
+
switch (type) {
case 'Follow': {
switch (localType) {