#scope :without_reblogs, -> { where('statuses.reblog_of_id IS NULL') }
scope:without_reblogs,->{joins('INNER JOIN statuses reblog ON reblog.id = statuses.reblog_of_id')
.where('statuses.reblog_of_id IS NULL OR reblog.account_id = statuses.account_id')}
scope:without_reblogs,->{joins('INNER JOIN statuses ori ON (statuses.reblog_of_id is NULL AND ori.id = statuses.id) OR ori.id = statuses.reblog_of_id')