MS IZ Now Rafi with no posts does not display 0 in his identi.ca feed
This commit is contained in:
parent
a06ccc15c9
commit
08061d4315
2 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue