mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-24 05:55:04 +00:00
In the insert cmdline op, don't re-add if it's already in the timeline.
This commit is contained in:
parent
ec5ba68d00
commit
2416945748
1 changed files with 5 additions and 1 deletions
4
main.c
4
main.c
|
@ -558,7 +558,11 @@ int main(int argc, char *argv[])
|
||||||
if (data != NULL) {
|
if (data != NULL) {
|
||||||
xs_json_dump(data, 4, stdout);
|
xs_json_dump(data, 4, stdout);
|
||||||
enqueue_actor_refresh(&snac, xs_dict_get(data, "attributedTo"), 0);
|
enqueue_actor_refresh(&snac, xs_dict_get(data, "attributedTo"), 0);
|
||||||
|
|
||||||
|
if (!timeline_here(&snac, url))
|
||||||
timeline_add(&snac, url, data);
|
timeline_add(&snac, url, data);
|
||||||
|
else
|
||||||
|
printf("Post %s already here\n", url);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue