mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Process 'Update' + 'Person'.
This commit is contained in:
parent
c38cc09e4c
commit
e4967cfcb3
2 changed files with 8 additions and 2 deletions
|
@ -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
2
data.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue