diff options
| author | 2023-04-16 07:34:26 +0200 | |
|---|---|---|
| committer | 2023-04-16 07:34:26 +0200 | |
| commit | 2ec58144ba58c03e30fa5de936db5323da4fb62e (patch) | |
| tree | 9d018c029c64684ef66f8c3f0907af90bdfd55a5 | |
| parent | Return context ancestors in the right order. (diff) | |
| download | snac2-2ec58144ba58c03e30fa5de936db5323da4fb62e.tar.gz snac2-2ec58144ba58c03e30fa5de936db5323da4fb62e.tar.xz snac2-2ec58144ba58c03e30fa5de936db5323da4fb62e.zip | |
Temporary fix to this account show error.
| -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) { |