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 type error in announcement reaction update event payload (
#12946
)
closed-social-v3
ThibG
4 years ago
committed by
Eugen Rochko
parent
0dfba0884e
commit
288f509424
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/workers/publish_announcement_reaction_worker.rb
+ 1
- 1
app/workers/publish_announcement_reaction_worker.rb
View File
@ -10,7 +10,7 @@ class PublishAnnouncementReactionWorker
reaction
,
=
announcement
.
announcement_reactions
.
where
(
name
:
name
)
.
group
(
:announcement_id
,
:name
,
:custom_emoji_id
)
.
select
(
'name, custom_emoji_id, count(*) as count, false as me'
)
reaction
||
=
announcement
.
announcement_reactions
.
new
(
name
:
name
)
payload
=
InlineRenderer
.
render
(
reaction
,
nil
,
:reaction
)
.
tap
{
|
h
|
h
[
:announcement_id
]
=
announcement_id
}
payload
=
InlineRenderer
.
render
(
reaction
,
nil
,
:reaction
)
.
tap
{
|
h
|
h
[
:announcement_id
]
=
announcement_id
.
to_s
}
payload
=
Oj
.
dump
(
event
:
:'announcement.reaction'
,
payload
:
payload
)
Account
.
joins
(
:user
)
.
where
(
'users.current_sign_in_at > ?'
,
User
::
ACTIVE_DURATION
.
ago
)
.
find_each
do
|
account
|
Write
Preview
Loading…
Cancel
Save