diff options
author | default <nobody@localhost> | 2023-03-06 14:35:11 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-03-06 14:35:11 +0100 |
commit | b032e3d5224ed76ee1125fecb0d090fe60c313e9 (patch) | |
tree | 292d833da2495f98a7115146f9aeb1addb034f38 /activitypub.c | |
parent | e3e45b7c98ecae9b5e0b1d417b29fda073505134 (diff) |
Fixed is_msg_for_me().
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index ee790c7..75cbecf 100644 --- a/activitypub.c +++ b/activitypub.c @@ -295,7 +295,7 @@ int is_msg_for_me(snac *snac, xs_dict *msg) int ret = 1; char *type = xs_dict_get(msg, "type"); - if (!xs_is_null(type) && strcmp(type, "Note") == 0) { + if (!xs_is_null(type) && strcmp(type, "Create") == 0) { xs *rcpts = recipient_list(snac, msg, 0); xs_list *p = rcpts; xs_str *v; @@ -307,8 +307,8 @@ int is_msg_for_me(snac *snac, xs_dict *msg) } /* if we're not following this fellow, then the answer is NO */ - char *atto = xs_dict_get(msg, "attributedTo"); - if (xs_is_null(atto) || !following_check(snac, atto)) + char *actor = xs_dict_get(msg, "actor"); + if (xs_is_null(actor) || !following_check(snac, actor)) ret = 0; } |