Fixing robocop

This commit is contained in:
Thorsten Claus 2021-04-18 13:25:50 +02:00
parent c937e17335
commit 64d65269d8
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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