Don't leak reblogs of local-only toots

This commit is contained in:
Thibaut Girka 2018-05-22 11:32:21 +02:00
parent 92109c2cbe
commit e9a8bb3d30

View file

@ -494,6 +494,7 @@ class Status < ApplicationRecord
if account.domain.nil? && !attribute_changed?(:local_only) if account.domain.nil? && !attribute_changed?(:local_only)
self.local_only = marked_local_only? self.local_only = marked_local_only?
end end
self.local_only = reblog.local_only if reblog?
end end
def set_conversation def set_conversation