Include message ID in log, fix message
This commit is contained in:
parent
95c249fc23
commit
beb28c9696
|
@ -994,7 +994,7 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule {
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
message.persist(err => {
|
message.persist((err, messageId) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
if (_.isObject(localAddressedTo)) {
|
if (_.isObject(localAddressedTo)) {
|
||||||
localAddressedTo = localAddressedTo.username;
|
localAddressedTo = localAddressedTo.username;
|
||||||
|
@ -1004,8 +1004,9 @@ exports.getModule = class ActivityPubWebHandler extends WebHandlerModule {
|
||||||
localAddressedTo,
|
localAddressedTo,
|
||||||
activityId,
|
activityId,
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
|
messageId,
|
||||||
},
|
},
|
||||||
'Note delivered as message to private mailbox'
|
'Note persisted as local Message'
|
||||||
);
|
);
|
||||||
} else if (err.code === 'SQLITE_CONSTRAINT') {
|
} else if (err.code === 'SQLITE_CONSTRAINT') {
|
||||||
return cb(null);
|
return cb(null);
|
||||||
|
|
Loading…
Reference in New Issue