Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
QOTO
qoto
Commits
d412a8d1
Unverified
Commit
d412a8d1
authored
Jan 19, 2022
by
Eugen Rochko
Committed by
GitHub
Jan 19, 2022
Browse files
Fix error when processing poll updates (#17333)
Regression from #16697
parent
1060666c
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/services/activitypub/process_status_update_service.rb
View file @
d412a8d1
...
...
@@ -78,7 +78,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
MediaAttachment
.
where
(
id:
removed_media_attachments
.
map
(
&
:id
)).
update_all
(
status_id:
nil
)
MediaAttachment
.
where
(
id:
added_media_attachments
.
map
(
&
:id
)).
update_all
(
status_id:
@status
.
id
)
@media_attachments_changed
=
true
if
removed_media_attachments
.
positive
?
||
added_media_attachments
.
positive
?
@media_attachments_changed
=
true
if
removed_media_attachments
.
any
?
||
added_media_attachments
.
any
?
end
def
update_poll!
...
...
Write
Preview
Supports
Markdown
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