Process 'Update' + 'Person'.

This commit is contained in:
default 2022-09-28 20:08:02 +02:00
parent c38cc09e4c
commit e4967cfcb3
2 changed files with 8 additions and 2 deletions

View file

@ -669,10 +669,16 @@ void process_message(snac *snac, char *msg, char *req)
else
snac_log(snac, xs_fmt("error requesting 'Announce' object %s", object));
}
/*
else
if (strcmp(type, "Update") == 0) {
if (strcmp(utype, "Person") == 0) {
actor_add(snac, actor, xs_dict_get(msg, "object"));
snac_log(snac, xs_fmt("updated actor %s", actor));
}
else
snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype));
}
/*
else
if (strcmp(type, "Delete") == 0) {
}

2
data.c
View file

@ -737,7 +737,7 @@ d_char *_actor_fn(snac *snac, char *actor)
int actor_add(snac *snac, char *actor, char *msg)
/* adds a follower */
/* adds an actor */
{
int ret = 201; /* created */
xs *fn = _actor_fn(snac, actor);