summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-08-12 09:43:01 +0200
committerdefault <nobody@localhost>2023-08-12 09:43:01 +0200
commit499697258d2c266be69dc13dae96083fc78cd3ef (patch)
tree9339a03de6c31cf4c30f4e6269815825fc561544 /data.c
parentb5cab5bddda32c758e9a944371c055de13d8d55a (diff)
Rewritten is_msg_public() to not depend on a user.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index 07ea27a..d7643e2 100644
--- a/data.c
+++ b/data.c
@@ -1041,7 +1041,7 @@ void timeline_update_indexes(snac *snac, const char *id)
if (valid_status(object_get(id, &msg))) {
/* if its ours and is public, also store in public */
- if (is_msg_public(snac, msg)) {
+ if (is_msg_public(msg)) {
object_user_cache_add(snac, id, "public");
/* also add it to the instance public timeline */