fabsh
(Fabian A. Scherschel)
16 Junio, 2023 09:57
18
El problema fue, de hecho, un error en la última versión de Discourse. Communiteq lo está corrigiendo en mi instancia del foro. Para más información, véase aquí:
So main has this
TopicEmbed.import_remote(@embed_url, user: User.find_by(username_lower: username.downcase))
and stable has this
TopicEmbed.import_remote(user, @embed_url)
Note the order of the parameters.
Now the backport of the security patch changed the function signature on stable to the new parameter order,so
def self.import_remote(import_user, url, opts = nil)
became
def self.import_remote(url, opts = nil)
and now the url parameter receives a User object.
Changing the function ca…