diff options
| author | 2023-01-13 07:12:19 +0100 | |
|---|---|---|
| committer | 2023-01-13 07:12:19 +0100 | |
| commit | 11ba44ff9ffae4f5d71790205ca609d8cf77809c (patch) | |
| tree | 471c01ed9a034f9f4ca8057036f2351eae71ed44 | |
| parent | Minor URL formatting tweaks. (diff) | |
| download | snac2-11ba44ff9ffae4f5d71790205ca609d8cf77809c.tar.gz snac2-11ba44ff9ffae4f5d71790205ca609d8cf77809c.tar.xz snac2-11ba44ff9ffae4f5d71790205ca609d8cf77809c.zip | |
Some mention formatting tweaks.
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 3eb88c6..a73b107 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -277,11 +277,12 @@ void process_tags(snac *snac, const char *content, d_char **n_content, d_char ** | |||
| 277 | if ((n & 0x1)) { | 277 | if ((n & 0x1)) { |
| 278 | if (*v == '@') { | 278 | if (*v == '@') { |
| 279 | /* query the webfinger about this fellow */ | 279 | /* query the webfinger about this fellow */ |
| 280 | xs *v2 = xs_strip_chars_i(xs_dup(v), "@."); | ||
| 280 | xs *actor = NULL; | 281 | xs *actor = NULL; |
| 281 | xs *uid = NULL; | 282 | xs *uid = NULL; |
| 282 | int status; | 283 | int status; |
| 283 | 284 | ||
| 284 | status = webfinger_request(v + 1, &actor, &uid); | 285 | status = webfinger_request(v2, &actor, &uid); |
| 285 | 286 | ||
| 286 | if (valid_status(status)) { | 287 | if (valid_status(status)) { |
| 287 | xs *d = xs_dict_new(); | 288 | xs *d = xs_dict_new(); |