mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
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.
This commit is contained in:
parent
21a2a01937
commit
a7d4513f77
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue