diff options
| author | 2024-02-21 08:38:46 +0100 | |
|---|---|---|
| committer | 2024-02-21 08:38:46 +0100 | |
| commit | ae6aafeb881c075a49eddd834bcfc21e9fc63b18 (patch) | |
| tree | 68ceea2b383ebeed99f396dd3249002168c09710 | |
| parent | Started an instance page. (diff) | |
| download | snac2-ae6aafeb881c075a49eddd834bcfc21e9fc63b18.tar.gz snac2-ae6aafeb881c075a49eddd834bcfc21e9fc63b18.tar.xz snac2-ae6aafeb881c075a49eddd834bcfc21e9fc63b18.zip | |
In html_timeline(), always pick the msg from the global object storage.
This allows the logged instance timeline to work.
Does this have more implications? Not sure.
| -rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -1938,9 +1938,11 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 1938 | xs *msg = NULL; | 1938 | xs *msg = NULL; |
| 1939 | int status; | 1939 | int status; |
| 1940 | 1940 | ||
| 1941 | #if 0 | ||
| 1941 | if (user && !is_pinned_by_md5(user, v)) | 1942 | if (user && !is_pinned_by_md5(user, v)) |
| 1942 | status = timeline_get_by_md5(user, v, &msg); | 1943 | status = timeline_get_by_md5(user, v, &msg); |
| 1943 | else | 1944 | else |
| 1945 | #endif | ||
| 1944 | status = object_get_by_md5(v, &msg); | 1946 | status = object_get_by_md5(v, &msg); |
| 1945 | 1947 | ||
| 1946 | if (!valid_status(status)) | 1948 | if (!valid_status(status)) |