Procházet zdrojové kódy

Use 'quoteUri' instead of 'quote'.

grunfink před 8 měsíci
rodič
revize
587e1797dd
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      activitypub.c
  2. 1 1
      html.c

+ 1 - 1
activitypub.c

@@ -2686,7 +2686,7 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
 
                 timeline_request(snac, &in_reply_to, &wrk, 0);
 
-                const char *quoted_id = xs_dict_get(object, "quote");
+                const char *quoted_id = xs_dict_get(object, "quoteUri");
                 if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
                     xs *quoted_post = NULL;
                     int status;

+ 1 - 1
html.c

@@ -2396,7 +2396,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
             xs_html_raw(c));
 
         /* quoted post */
-        const char *quoted_id = xs_dict_get(msg, "quote");
+        const char *quoted_id = xs_dict_get(msg, "quoteUri");
         if (xs_is_string(quoted_id) && xs_match(quoted_id, "https://*|http://*")) { /** **/
             xs *quoted_post = NULL;