Kaynağa Gözat

Some mention formatting tweaks.

default 3 yıl önce
ebeveyn
işleme
11ba44ff9f
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      activitypub.c

+ 2 - 1
activitypub.c

@@ -277,11 +277,12 @@ void process_tags(snac *snac, const char *content, d_char **n_content, d_char **
         if ((n & 0x1)) {
         if ((n & 0x1)) {
             if (*v == '@') {
             if (*v == '@') {
                 /* query the webfinger about this fellow */
                 /* query the webfinger about this fellow */
+                xs *v2    = xs_strip_chars_i(xs_dup(v), "@.");
                 xs *actor = NULL;
                 xs *actor = NULL;
                 xs *uid   = NULL;
                 xs *uid   = NULL;
                 int status;
                 int status;
 
 
-                status = webfinger_request(v + 1, &actor, &uid);
+                status = webfinger_request(v2, &actor, &uid);
 
 
                 if (valid_status(status)) {
                 if (valid_status(status)) {
                     xs *d = xs_dict_new();
                     xs *d = xs_dict_new();