summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-16 07:34:26 +0200
committerdefault <nobody@localhost>2023-04-16 07:34:26 +0200
commit2ec58144ba58c03e30fa5de936db5323da4fb62e (patch)
tree9d018c029c64684ef66f8c3f0907af90bdfd55a5
parentcc48f25e98b2b60f4a4323791d95209b26f90539 (diff)
Temporary fix to this account show error.
-rw-r--r--mastoapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index fd0924f..d1ae463 100644
--- a/mastoapi.c
+++ b/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) {