diff options
-rw-r--r-- | RELEASE_NOTES.md | 2 | ||||
-rw-r--r-- | activitypub.c | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 9f090d5..ec7679c 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,6 +2,8 @@ ## 2.44 +Shared inboxes are now supported. This is not a user visible feature (hopefully, they will not feel any change), but it will significantly improve traffic for snac instances with many users and will open room for new features that are only feasible with these kind of input channels. + I've refactored all HTML code because it was somewhat of a mess; now it's much more maintainable (at least for me). I think I haven't broken anything. Fixed crash in a special case of malformed query. diff --git a/activitypub.c b/activitypub.c index d7f5b37..69f47e0 100644 --- a/activitypub.c +++ b/activitypub.c @@ -141,7 +141,7 @@ int actor_request(const char *actor, xs_dict **data) } } else - srv_debug(0, xs_fmt("actor_request error %s %d", actor, status)); + srv_debug(1, xs_fmt("actor_request error %s %d", actor, status)); } /* collect the (presumed) shared inbox in this actor */ @@ -190,7 +190,7 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level) if (xs_is_null(type)) type = "(null)"; - srv_debug(1, xs_fmt("timeline_request type %s '%s'", nid, type)); + srv_debug(2, xs_fmt("timeline_request type %s '%s'", nid, type)); if (strcmp(type, "Create") == 0) { /* some software like lemmy nest Announce + Create + Note */ @@ -1506,7 +1506,7 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) if (strcmp(type, "Delete") == 0) { /* if the actor is not here, do not even try */ if (!object_here(actor)) { - srv_debug(0, xs_fmt("dropped 'Delete' message from unknown actor '%s'", actor)); + srv_debug(1, xs_fmt("dropped 'Delete' message from unknown actor '%s'", actor)); return -1; } } @@ -1703,13 +1703,13 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) do_notify = 1; } else - snac_log(snac, xs_fmt("dropped 'Announce' on actor request error %s", who)); + snac_debug(snac, 1, xs_fmt("dropped 'Announce' on actor request error %s", who)); } else snac_log(snac, xs_fmt("ignored 'Announce' about muted actor %s", who)); } else - snac_debug(snac, 1, xs_fmt("error requesting 'Announce' object %s", object)); + snac_debug(snac, 2, xs_fmt("error requesting 'Announce' object %s", object)); } } else |