diff options
| author | 2024-04-18 15:12:47 +0000 | |
|---|---|---|
| committer | 2024-04-18 15:12:47 +0000 | |
| commit | 100c9cf569ef4497160ac60a55f5b94b9cb524bc (patch) | |
| tree | 30791ca1d83e2b94787e42432898ac7b2c7f7943 /activitypub.c | |
| parent | Improved non-public reply check. (diff) | |
| parent | Ability to federate with hidden networks #93 (update for v2.49) (diff) | |
| download | snac2-100c9cf569ef4497160ac60a55f5b94b9cb524bc.tar.gz snac2-100c9cf569ef4497160ac60a55f5b94b9cb524bc.tar.xz snac2-100c9cf569ef4497160ac60a55f5b94b9cb524bc.zip | |
Merge pull request 'Ability to federate with hidden networks #93 (update for v2.49)' (#149) from iwojima/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/149
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) { |