Parcourir la source

Added an actor refresh in html_entry().

grunfink il y a 1 an
Parent
commit
a5ce94c824
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      html.c

+ 6 - 1
html.c

@@ -2008,8 +2008,13 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
     }
 
     if ((user == NULL || strcmp(actor, user->actor) != 0)
-        && !valid_status(actor_get(actor, NULL)))
+        && !valid_status(actor_get(actor, NULL))) {
+
+        if (user)
+            enqueue_actor_refresh(user, actor, 0);
+
         return NULL;
+    }
 
     /** html_entry top tag **/
     xs_html *entry_top = xs_html_tag("div", NULL);