diff options
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -722,6 +722,10 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 722 | xs *out = NULL; | 722 | xs *out = NULL; |
| 723 | xs *actor = NULL; | 723 | xs *actor = NULL; |
| 724 | 724 | ||
| 725 | /* if uid it's the md5 of this actor, transform into a real uid */ | ||
| 726 | if (strcmp(uid, snac1.md5) == 0) | ||
| 727 | uid = xs_dict_get(snac1.config, "uid"); | ||
| 728 | |||
| 725 | /* is it a local user? */ | 729 | /* is it a local user? */ |
| 726 | if (user_open(&snac2, uid)) { | 730 | if (user_open(&snac2, uid)) { |
| 727 | if (opt == NULL) { | 731 | if (opt == NULL) { |