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 526302a..53f102e 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1277,7 +1277,7 @@ xs_dict *msg_actor(snac *snac) | |||
| 1277 | xs *k2 = encode_html(k); | 1277 | xs *k2 = encode_html(k); |
| 1278 | xs *v2 = NULL; | 1278 | xs *v2 = NULL; |
| 1279 | 1279 | ||
| 1280 | if (xs_startswith(v, "https:")) { | 1280 | if (xs_startswith(v, "http")) { |
| 1281 | xs *t = encode_html(v); | 1281 | xs *t = encode_html(v); |
| 1282 | v2 = xs_fmt("<a href=\"%s\" rel=\"me\">%s</a>", t, t); | 1282 | v2 = xs_fmt("<a href=\"%s\" rel=\"me\">%s</a>", t, t); |
| 1283 | } | 1283 | } |
| @@ -1369,7 +1369,7 @@ xs_dict *msg_follow(snac *snac, const char *q) | |||
| 1369 | 1369 | ||
| 1370 | xs *url_or_uid = xs_strip_i(xs_str_new(q)); | 1370 | xs *url_or_uid = xs_strip_i(xs_str_new(q)); |
| 1371 | 1371 | ||
| 1372 | if (xs_startswith(url_or_uid, "https:/")) | 1372 | if (xs_startswith(url_or_uid, "http")) |
| 1373 | actor = xs_dup(url_or_uid); | 1373 | actor = xs_dup(url_or_uid); |
| 1374 | else | 1374 | else |
| 1375 | if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) { | 1375 | if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) { |