fabsh
(Fabian A. Scherschel)
16 Giugno 2023, 9:57am
18
Il problema era effettivamente un bug nell’ultima versione di Discourse. Communiteq lo sta correggendo sulla mia istanza del forum. Per maggiori informazioni, vedi qui:
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…