|
@@ -468,9 +468,9 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
|
|
|
return following_check(snac, actor);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
if (xs_match(type, "Undo")) {
|
|
|
- return following_check(snac, actor);
|
|
|
+ return follower_check(snac, actor);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -478,6 +478,12 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
|
|
|
return following_check(snac, actor);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if (xs_match(type, "Follow")) {
|
|
|
+ char *object = xs_dict_get(c_msg, "object");
|
|
|
+ return !xs_is_null(object) && strcmp(snac->actor, object) == 0;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (!xs_match(type, "Create|Update")) {
|
|
|
return 1;
|