فهرست منبع

Merge branch 'master' of triptico.com:git/snac2

default 3 سال پیش
والد
کامیت
6c0381bd5c
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      mastoapi.c

+ 5 - 0
mastoapi.c

@@ -522,6 +522,11 @@ xs_dict *mastoapi_account(const xs_dict *actor)
     if (xs_is_null(note))
     if (xs_is_null(note))
         note = "";
         note = "";
 
 
+    if (strcmp(xs_dict_get(actor, "type"), "Service") == 0)
+        acct = xs_dict_append(acct, "bot", "true");
+    else
+        acct = xs_dict_append(acct, "bot", "false");
+
     acct = xs_dict_append(acct, "note", note);
     acct = xs_dict_append(acct, "note", note);
 
 
     acct = xs_dict_append(acct, "url", id);
     acct = xs_dict_append(acct, "url", id);