Onebox showing wrong avatar?

AI-generated summary

In a bug report titled “Onebox showing wrong avatar?”, tophee noticed that a onebox preview displayed their own avatar instead of the original poster’s. Mittineague speculated it might be due to being the last to edit the topic. Vaping_Community suggested it could be related to URL parameters like ?u=tophee, but codinghorror clarified that parameter is for tracking badge-related link sharing, not avatar display. zogstrip investigated and found 5 topics where topic.user_id != topic.posts.first.user_id, indicating a mismatch between topic owner and first poster — possibly caused by a previously buggy “move posts to new topic” feature. sam theorized this could stem from unresolved historical bugs in topic splitting, where fixes were implemented without migrations to correct existing data. The issue highlights a data inconsistency rather than a UI or parameter bug, and points to legacy system behavior as the likely root cause.

Hm, this is strange: why does the topic I linked in this topic have my avatar? Shouldn’t it (i.e. the onebox) show the poster’s avatar?

5 Likes

Because you’re the last one that touched it?

3 Likes

Nice catch, @zogstrip since you have recently been all over this code can you have a look?

1 Like

Isn’t it because of this..

?u-tophee

https://meta.discourse.org/t/new-users-arent-starting-the-discobot-tutorial/62995?u=tophee

Which is caused by using the URL from the little link icon

Fixed?

Nope, that has nothing to do with it.. that’s for tracking user badges related to sharing links.

1 Like

Turns out, we had 5 topics where “topic.user_id != topic.posts.first.user_id” and that topic was one of them.

I’m not 100% sure how this happened… I think it could be because of our “move posts to a new topic” feature that wasn’t working properly back then?

6 Likes

I wonder if this is bad splits of topic (eg bugs we fixed but did not add a migration to correct the historical issues)