MS IZ Now Rafi with no posts does not display 0 in his identi.ca feed

This commit is contained in:
ilya 2010-07-23 17:33:40 -07:00
parent a06ccc15c9
commit 08061d4315
2 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,8 @@ module Diaspora
author_hash = parse_author(doc)
entry_hash = parse_entry(doc)
author = Author.instantiate(author_hash).ostatus_posts.create(entry_hash)
author = Author.instantiate(author_hash)
author.ostatus_posts.create(entry_hash) unless entry_hash[:message] == 0
end
def self.parse_author(doc)

View file

@ -30,6 +30,8 @@ namespace :db do
Person.delete_all
User.delete_all
Request.delete_all
Author.delete_all
OstatusPost.delete_all
Album.delete_all
end