aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2018-04-28 18:04:31 -0700
committerAdam Mathes <adam@trenchant.org>2018-04-28 18:04:31 -0700
commit977cffac4df09a49a0d61c19688cebf0c58eeb51 (patch)
tree7cd40afdf65d364fb81e7ff83236b23dd965c2de /models
parent2b1a592c9ee9ef2dcf708f90fad048c397b43508 (diff)
downloadneko-977cffac4df09a49a0d61c19688cebf0c58eeb51.tar.gz
neko-977cffac4df09a49a0d61c19688cebf0c58eeb51.tar.bz2
neko-977cffac4df09a49a0d61c19688cebf0c58eeb51.zip
mariadb huh
Diffstat (limited to 'models')
-rw-r--r--models/item/item.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/item/item.go b/models/item/item.go
index 795f38e..0e00c64 100644
--- a/models/item/item.go
+++ b/models/item/item.go
@@ -132,7 +132,7 @@ func Filter(max_id int64, feed_id int64, category string, unread_only bool, star
item.full_content, item.header_image,
feed.url, feed.title, feed.category
FROM item,feed
- WHERE item.feed_id=feed.id `
+ WHERE item.feed_id=feed.id AND item.id!=0 `
if max_id != 0 {
query = query + "AND item.id < ? "