summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-24 20:06:02 +0200
committerdefault <nobody@localhost>2022-10-24 20:06:02 +0200
commitd2095105de3fe8c3397df7d46a9d61011b74c09e (patch)
tree743600f6c31479d1012d6e77ef4de666e7de51ca /html.c
parent13ac53b06a094059099272259dd671f5363c27ae (diff)
Don't load unneeded actor info in html_entry().
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/html.c b/html.c
index 9cf0815..bc84d07 100644
--- a/html.c
+++ b/html.c
@@ -443,7 +443,6 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, xs_set *seen, int local, i
char *id = xs_dict_get(msg, "id");
char *type = xs_dict_get(msg, "type");
char *meta = xs_dict_get(msg, "_snac");
- xs *actor_o = NULL;
char *actor;
/* do not show non-public messages in the public timeline */
@@ -477,10 +476,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, xs_set *seen, int local, i
if (is_muted(snac, actor))
return os;
- if (strcmp(actor, snac->actor) == 0)
- actor_o = msg_actor(snac);
- else
- if (!valid_status(actor_get(snac, actor, &actor_o)))
+ if (strcmp(actor, snac->actor) != 0 && !valid_status(actor_get(snac, actor, NULL)))
return os;
/* if this is our post, add the score */