Kaynağa Gözat

Temporary fix to this account show error.

default 3 yıl önce
ebeveyn
işleme
2ec58144ba
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      mastoapi.c

+ 4 - 0
mastoapi.c

@@ -722,6 +722,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
             xs *out   = NULL;
             xs *actor = NULL;
 
+            /* if uid it's the md5 of this actor, transform into a real uid */
+            if (strcmp(uid, snac1.md5) == 0)
+                uid = xs_dict_get(snac1.config, "uid");
+
             /* is it a local user? */
             if (user_open(&snac2, uid)) {
                 if (opt == NULL) {