Fixing robocop
This commit is contained in:
parent
c937e17335
commit
64d65269d8
2 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ class Post < ApplicationRecord
|
|||
scope :all_public, -> { where(public: true) }
|
||||
|
||||
scope :all_local_public, -> {
|
||||
where(" exists (
|
||||
where(" exists (
|
||||
select 1 from people where posts.author_id = people.id
|
||||
and people.pod_id is null)
|
||||
and posts.public = true")
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class Stream::LocalPublic < Stream::Base
|
|||
end
|
||||
|
||||
def title
|
||||
I18n.translate("streams.local_public.title")
|
||||
I18n.t("streams.local_public.title")
|
||||
end
|
||||
|
||||
# @return [ActiveRecord::Association<Post>] AR association of posts
|
||||
|
|
|
|||
Loading…
Reference in a new issue