Explorar o código

Added the profile="" argument to Person content-type.

default %!s(int64=3) %!d(string=hai) anos
pai
achega
e98dbe4eb5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      activitypub.c

+ 1 - 1
activitypub.c

@@ -1089,7 +1089,7 @@ int activitypub_get_handler(d_char *req, char *q_path,
     if (p_path == NULL) {
         /* if there was no component after the user, it's an actor request */
         msg = msg_actor(&snac);
-        *ctype = "application/ld+json";
+        *ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"";
     }
     else
     if (strcmp(p_path, "outbox") == 0) {