diff options
| author | 2023-05-01 07:35:26 +0200 | |
|---|---|---|
| committer | 2023-05-01 07:35:26 +0200 | |
| commit | a7d4513f776f831c36058dfb9b86e80438d16d26 (patch) | |
| tree | ed1c621a661198e0a5af587932cbcd7c3184eed1 | |
| parent | Return immediately from actor_get() if it's a local user. (diff) | |
| download | penes-snac2-a7d4513f776f831c36058dfb9b86e80438d16d26.tar.gz penes-snac2-a7d4513f776f831c36058dfb9b86e80438d16d26.tar.xz penes-snac2-a7d4513f776f831c36058dfb9b86e80438d16d26.zip | |
In /api/v1/statuses, get the object from the storage instead of from the timeline.
This was affecting clicking on posts from the instance timeline, that were not
in the logged-in user timeline.
| -rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1313,7 +1313,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1313 | /* skip the 'fake' part of the id */ | 1313 | /* skip the 'fake' part of the id */ |
| 1314 | id = MID_TO_MD5(id); | 1314 | id = MID_TO_MD5(id); |
| 1315 | 1315 | ||
| 1316 | if (valid_status(timeline_get_by_md5(&snac1, id, &msg))) { | 1316 | if (valid_status(object_get_by_md5(id, &msg))) { |
| 1317 | if (op == NULL) { | 1317 | if (op == NULL) { |
| 1318 | if (!is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) { | 1318 | if (!is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) { |
| 1319 | /* return the status itself */ | 1319 | /* return the status itself */ |