summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-01 07:35:26 +0200
committerdefault <nobody@localhost>2023-05-01 07:35:26 +0200
commita7d4513f776f831c36058dfb9b86e80438d16d26 (patch)
treeed1c621a661198e0a5af587932cbcd7c3184eed1
parent21a2a01937211543216add23a8a4eaca20bf5f67 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 5c4e27f..3d0a939 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1313,7 +1313,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
/* skip the 'fake' part of the id */
id = MID_TO_MD5(id);
- if (valid_status(timeline_get_by_md5(&snac1, id, &msg))) {
+ if (valid_status(object_get_by_md5(id, &msg))) {
if (op == NULL) {
if (!is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) {
/* return the status itself */