diff options
| author | 2025-06-27 15:24:27 +0200 | |
|---|---|---|
| committer | 2025-06-27 15:24:27 +0200 | |
| commit | a5ce94c824b0705da068420ca58e81bda7f8bef3 (patch) | |
| tree | 6af0e3b6ebf2a50521be822c4b908bd7aee16509 /html.c | |
| parent | Updated documentation. (diff) | |
| download | snac2-a5ce94c824b0705da068420ca58e81bda7f8bef3.tar.gz snac2-a5ce94c824b0705da068420ca58e81bda7f8bef3.tar.xz snac2-a5ce94c824b0705da068420ca58e81bda7f8bef3.zip | |
Added an actor refresh in html_entry().
Diffstat (limited to '')
| -rw-r--r-- | html.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -2008,8 +2008,13 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2008 | } | 2008 | } |
| 2009 | 2009 | ||
| 2010 | if ((user == NULL || strcmp(actor, user->actor) != 0) | 2010 | if ((user == NULL || strcmp(actor, user->actor) != 0) |
| 2011 | && !valid_status(actor_get(actor, NULL))) | 2011 | && !valid_status(actor_get(actor, NULL))) { |
| 2012 | |||
| 2013 | if (user) | ||
| 2014 | enqueue_actor_refresh(user, actor, 0); | ||
| 2015 | |||
| 2012 | return NULL; | 2016 | return NULL; |
| 2017 | } | ||
| 2013 | 2018 | ||
| 2014 | /** html_entry top tag **/ | 2019 | /** html_entry top tag **/ |
| 2015 | xs_html *entry_top = xs_html_tag("div", NULL); | 2020 | xs_html *entry_top = xs_html_tag("div", NULL); |