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_public, -> { where(public: true) }
|
||||||
|
|
||||||
scope :all_local_public, -> {
|
scope :all_local_public, -> {
|
||||||
where(" exists (
|
where(" exists (
|
||||||
select 1 from people where posts.author_id = people.id
|
select 1 from people where posts.author_id = people.id
|
||||||
and people.pod_id is null)
|
and people.pod_id is null)
|
||||||
and posts.public = true")
|
and posts.public = true")
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class Stream::LocalPublic < Stream::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def title
|
def title
|
||||||
I18n.translate("streams.local_public.title")
|
I18n.t("streams.local_public.title")
|
||||||
end
|
end
|
||||||
|
|
||||||
# @return [ActiveRecord::Association<Post>] AR association of posts
|
# @return [ActiveRecord::Association<Post>] AR association of posts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue