diff --git a/src/sql/insert_anon_author.sql b/src/sql/insert_anon_author.sql index f7f3629..b2ff0e6 100644 --- a/src/sql/insert_anon_author.sql +++ b/src/sql/insert_anon_author.sql @@ -1,10 +1,12 @@ INSERT OR IGNORE INTO authors ( + id, name, salt, passhash, joindate, biography ) VALUES ( + -1, 'anonymous', '', '', diff --git a/src/sql/select_site_index.sql b/src/sql/select_site_index.sql index a5bb6fe..024b692 100644 --- a/src/sql/select_site_index.sql +++ b/src/sql/select_site_index.sql @@ -9,17 +9,6 @@ FROM authors WHERE posts.authorid = authors.id -UNION -SELECT - posts.id, - posts.post_title, - posts.isanon, - posts.post_time, - 'Anonymous' -FROM - posts -WHERE - posts.authorid = -1 ORDER BY posts.post_time DESC LIMIT 10;