diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 1976012..73fbbc6 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1228,7 +1228,7 @@ xs_dict *msg_actor(snac *snac) | |||
| 1228 | xs *k2 = encode_html(k); | 1228 | xs *k2 = encode_html(k); |
| 1229 | xs *v2 = NULL; | 1229 | xs *v2 = NULL; |
| 1230 | 1230 | ||
| 1231 | if (xs_startswith(v, "https:")) { | 1231 | if (xs_startswith(v, "http")) { |
| 1232 | xs *t = encode_html(v); | 1232 | xs *t = encode_html(v); |
| 1233 | v2 = xs_fmt("<a href=\"%s\" rel=\"me\">%s</a>", t, t); | 1233 | v2 = xs_fmt("<a href=\"%s\" rel=\"me\">%s</a>", t, t); |
| 1234 | } | 1234 | } |
| @@ -1320,7 +1320,7 @@ xs_dict *msg_follow(snac *snac, const char *q) | |||
| 1320 | 1320 | ||
| 1321 | xs *url_or_uid = xs_strip_i(xs_str_new(q)); | 1321 | xs *url_or_uid = xs_strip_i(xs_str_new(q)); |
| 1322 | 1322 | ||
| 1323 | if (xs_startswith(url_or_uid, "https:/")) | 1323 | if (xs_startswith(url_or_uid, "http")) |
| 1324 | actor = xs_dup(url_or_uid); | 1324 | actor = xs_dup(url_or_uid); |
| 1325 | else | 1325 | else |
| 1326 | if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) { | 1326 | if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) { |