Alte Benutzer-Avatare im zitierten Text?

Ich bin mir nicht sicher, ob dies wirklich ein Fehler ist oder nur ein Verhalten, das ich nicht ganz verstehe, aber es scheint so, als würde das Zitieren einer Person in einem Beitrag deren Avatar zu diesem Zeitpunkt mit dem Zitat speichern. Wie hier:

Es scheint, als könnte dies ein Regression dieses Problems sein:
https://meta.discourse.org/t/after-changing-avatar-quotes-still-show-the-old-avatar/21122

Not a bug; it’s always been that way.

2 „Gefällt mir“

I suppose its because the posts are baked with the URL at the time. Do you want a fix for this, or is it too potentially resource intensive to trigger a rebake each time someone changes their avatar?

Changing the avatar already triggers a rebake of posts containing quotes, but it’s currently quite resource intensive to find and rebake all posts. So, it’s possible that some of them won’t be updated. Post revisions aren’t updated at all.

I have plans to fix all of this when I’m working on improvements for user renaming/anonymizing in one of the next releases. It will require a new table that keeps track of all the places where a user is quoted, mentioned, oneboxed, and what not.

If you want to work on this, please keep in mind that rebaking just to update the avatar isn’t needed. I’d suggest reusing code from UpdatUsername. It’s a lot faster.

8 „Gefällt mir“

Dies geschieht after_save, verwendet aber will_save_change, daher bin ich ziemlich sicher, dass es nie ausgelöst wird. Es sieht so aus, als ob es vorher funktioniert hat, aber dieser Commit im Jahr 2017 hat (meiner Meinung nach fälschlicherweise) von _changed zu will_save_change geändert.

3 „Gefällt mir“

Ich denke, wir haben hier auch ein paar #bug-Themen:\n\nhttps://meta.discourse.org/t/quote-s-use-incorrect-user-avatar-after-changing-avatar/286750\n\nhttps://meta.discourse.org/t/profile-image-changing-bug/217184

4 „Gefällt mir“

Danke @dsims, dass du die Grundursache dieses Problems gefunden hast! Ich habe einen PR mit einer Korrektur erstellt.

4 „Gefällt mir“

Dieses Thema wurde nach 4 Tagen automatisch geschlossen. Neue Antworten sind nicht mehr möglich.