Przeglądaj źródła

Request unfound actors from the notifications page.

grunfink 8 miesięcy temu
rodzic
commit
bde0747626
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      html.c

+ 5 - 1
html.c

@@ -3578,9 +3578,13 @@ xs_str *html_notifications(snac *user, int skip, int show)
 
         if (valid_status(actor_get(actor_id, &actor)))
             a_name = actor_name(actor, proxy);
-        else
+        else {
             a_name = xs_dup(actor_id);
 
+            /* actor not here: request it */
+            enqueue_actor_refresh(user, actor_id, 0);
+        }
+
         xs *label_sanitized = sanitize(type);
         const char *label = label_sanitized;