summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9244b5a..240e02e 100644
--- a/main.c
+++ b/main.c
@@ -380,7 +380,26 @@ int main(int argc, char *argv[])
380 int to; 380 int to;
381 381
382 /* 'url' contains the regex */ 382 /* 'url' contains the regex */
383 xs *r = search_by_content(&snac, tl, url, 10, &to); 383 xs *r = content_search(&snac, tl, url, 10, &to);
384
385 int c = 0;
386 char *v;
387
388 /* print results as standalone links */
389 while (xs_list_next(r, &v, &c)) {
390 printf("%s/admin/p/%s\n", snac.actor, v);
391 }
392
393 return 0;
394 }
395
396 if (strcmp(cmd, "search2") == 0) { /** **/
397 /* undocumented (for testing only) */
398 xs *tl = timeline_simple_list(&snac, "public", 0, XS_ALL);
399 int to;
400
401 /* 'url' contains the regex */
402 xs *r = content_search(&snac, tl, url, 10, &to);
384 403
385 int c = 0; 404 int c = 0;
386 char *v; 405 char *v;