Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gab-social
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
gab
social
gab-social
Commits
b75e3425
Commit
b75e3425
authored
Nov 13, 2020
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed home timeline to be last 5 days instead of 30
parent
62515bba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/models/status.rb
app/models/status.rb
+1
-1
No files found.
app/models/status.rb
View file @
b75e3425
...
@@ -302,7 +302,7 @@ class Status < ApplicationRecord
...
@@ -302,7 +302,7 @@ class Status < ApplicationRecord
end
end
def
as_home_timeline
(
account
)
def
as_home_timeline
(
account
)
query
=
where
(
'updated_at > ?'
,
30
.
days
.
ago
)
query
=
where
(
'updated_at > ?'
,
5
.
days
.
ago
)
query
.
where
(
visibility:
[
:public
,
:unlisted
,
:private
])
query
.
where
(
visibility:
[
:public
,
:unlisted
,
:private
])
query
.
where
(
account:
[
account
]
+
account
.
following
).
without_replies
query
.
where
(
account:
[
account
]
+
account
.
following
).
without_replies
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment