This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix tag score not being updated when the tag is trending (
#11465
)
master
Eugen Rochko
5 years ago
committed by
GitHub
parent
2dee293c4c
commit
29609c09f4
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/trending_tags.rb
+ 1
- 1
app/models/trending_tags.rb
View File
@ -49,7 +49,7 @@ class TrendingTags
else
score
=
(
(
observed
-
expected
)
**
2
)
/
expected
added
=
redis
.
zadd
(
key
,
score
,
tag_id
.
to_s
)
bump_tag_score!
(
tag_id
)
if
added
==
1
bump_tag_score!
(
tag_id
)
if
added
end
redis
.
expire
(
key
,
EXPIRE_TRENDS_AFTER
)
Write
Preview
Loading…
Cancel
Save