Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
6201fba2
Commit
6201fba2
authored
7 years ago
by
nicobz25
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into patch-1
parents
9572282a
cfe91ac9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/lib/feed_manager.rb
+1
-1
1 addition, 1 deletion
app/lib/feed_manager.rb
db/migrate/20170405112956_add_index_on_mentions_status_id.rb
+5
-0
5 additions, 0 deletions
db/migrate/20170405112956_add_index_on_mentions_status_id.rb
db/schema.rb
+2
-1
2 additions, 1 deletion
db/schema.rb
with
8 additions
and
2 deletions
app/lib/feed_manager.rb
+
1
−
1
View file @
6201fba2
...
...
@@ -39,7 +39,7 @@ class FeedManager
def
broadcast
(
timeline_id
,
options
=
{})
options
[
:queued_at
]
=
(
Time
.
now
.
to_f
*
1000.0
).
to_i
ActionCable
.
server
.
broadcast
(
"timeline:
#{
timeline_id
}
"
,
options
)
redis
.
publish
(
"timeline:
#{
timeline_id
}
"
,
Oj
.
dump
(
options
)
)
end
def
trim
(
type
,
account_id
)
...
...
This diff is collapsed.
Click to expand it.
db/migrate/20170405112956_add_index_on_mentions_status_id.rb
0 → 100644
+
5
−
0
View file @
6201fba2
class
AddIndexOnMentionsStatusId
<
ActiveRecord
::
Migration
[
5.0
]
def
change
add_index
:mentions
,
:status_id
end
end
This diff is collapsed.
Click to expand it.
db/schema.rb
+
2
−
1
View file @
6201fba2
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017040
3172249
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017040
5112956
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -127,6 +127,7 @@ ActiveRecord::Schema.define(version: 20170403172249) do
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
index
[
"account_id"
,
"status_id"
],
name:
"index_mentions_on_account_id_and_status_id"
,
unique:
true
,
using: :btree
t
.
index
[
"status_id"
],
name:
"index_mentions_on_status_id"
,
using: :btree
end
create_table
"mutes"
,
force: :cascade
do
|
t
|
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment