أيقونات المستخدمين القديمة في النص المقتبس؟

لست متأكدًا مما إذا كانت هذه مشكلة دقيقة أم مجرد سلوك لا أفهمه تمامًا، لكن يبدو أن اقتباس شخص ما في منشور يخزن صورة ملفه الشخصي في تلك اللحظة بالتحديد مع الاقتباس. مثل هنا:

يبدو أن هذا قد يكون انتكاسة لهذا الأمر:
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)

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 إعجابات

يحدث هذا after_save ولكنه يستخدم will_save_change لذلك أنا متأكد تمامًا من أنه لا يتم تشغيله أبدًا. يبدو أنه كان كذلك من قبل ولكن هذا الالتزام في عام 2017 (عن طريق الخطأ على ما أعتقد) انتقل من _changed إلى will_save_change.

3 إعجابات

أعتقد أن لدينا موضوعين متعلقين بـ Bug أيضًا:

4 إعجابات

شكراً @dsims على إيجاد السبب الجذري لهذه المشكلة! لقد أنشأت طلب سحب (PR) مع إصلاح.

4 إعجابات

تم إغلاق هذا الموضوع تلقائيًا بعد 4 أيام. لم يعد يُسمح بالردود الجديدة.