diff options
| -rw-r--r-- | html.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -867,6 +867,14 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 867 | } | 867 | } |
| 868 | else | 868 | else |
| 869 | if (strcmp(action, L("Follow")) == 0) { | 869 | if (strcmp(action, L("Follow")) == 0) { |
| 870 | char *msg = msg_follow(&snac, actor); | ||
| 871 | |||
| 872 | /* reload the actor from the message, in may be different */ | ||
| 873 | actor = xs_dict_get(msg, "object"); | ||
| 874 | |||
| 875 | following_add(&snac, actor, msg); | ||
| 876 | |||
| 877 | enqueue_output(&snac, msg, actor, 0); | ||
| 870 | } | 878 | } |
| 871 | else | 879 | else |
| 872 | if (strcmp(action, L("Unfollow")) == 0) { | 880 | if (strcmp(action, L("Unfollow")) == 0) { |