Quellcode durchsuchen

Request unfound actors from the notifications page.

grunfink vor 8 Monaten
Ursprung
Commit
bde0747626
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  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)))
         if (valid_status(actor_get(actor_id, &actor)))
             a_name = actor_name(actor, proxy);
             a_name = actor_name(actor, proxy);
-        else
+        else {
             a_name = xs_dup(actor_id);
             a_name = xs_dup(actor_id);
 
 
+            /* actor not here: request it */
+            enqueue_actor_refresh(user, actor_id, 0);
+        }
+
         xs *label_sanitized = sanitize(type);
         xs *label_sanitized = sanitize(type);
         const char *label = label_sanitized;
         const char *label = label_sanitized;