summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2024-04-18 15:12:47 +0000
committergrunfink <grunfink@noreply.codeberg.org>2024-04-18 15:12:47 +0000
commit100c9cf569ef4497160ac60a55f5b94b9cb524bc (patch)
tree30791ca1d83e2b94787e42432898ac7b2c7f7943 /activitypub.c
parent44d126e0f96748f7f5e0c8a95ed8b3f5f69cd0f0 (diff)
parent7312f4ce51100d4ed98988cb3af0ab06e4fba53c (diff)
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.c4
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)
xs *k2 = encode_html(k);
xs *v2 = NULL;
- if (xs_startswith(v, "https:")) {
+ if (xs_startswith(v, "http")) {
xs *t = encode_html(v);
v2 = xs_fmt("<a href=\"%s\" rel=\"me\">%s</a>", t, t);
}
@@ -1369,7 +1369,7 @@ xs_dict *msg_follow(snac *snac, const char *q)
xs *url_or_uid = xs_strip_i(xs_str_new(q));
- if (xs_startswith(url_or_uid, "https:/"))
+ if (xs_startswith(url_or_uid, "http"))
actor = xs_dup(url_or_uid);
else
if (!valid_status(webfinger_request(url_or_uid, &actor, NULL)) || actor == NULL) {