commit a7d4513
default
·
2023-05-01 05:35:26 +0000 UTC
parent 21a2a01
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.
1 files changed,
+1,
-1
+1,
-1
1@@ -1313,7 +1313,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 /* skip the 'fake' part of the id */
3 id = MID_TO_MD5(id);
4
5- if (valid_status(timeline_get_by_md5(&snac1, id, &msg))) {
6+ if (valid_status(object_get_by_md5(id, &msg))) {
7 if (op == NULL) {
8 if (!is_muted(&snac1, xs_dict_get(msg, "attributedTo"))) {
9 /* return the status itself */