fabsh
(Fabian A. Scherschel)
Juin 16, 2023, 9:57
18
Le problème était effectivement un bug dans la dernière version de Discourse. Communiteq le corrige sur mon instance de forum. Pour plus d’informations, voir ici :
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…