사용자 프로필 사진이 자동으로 업데이트되는 링크를 만들 수 있나요? 각 사용자에게 아바타용 '슬롯' 하나를 제공하는 방식처럼요?

관리자와版主를 위한 정보를 담을 “Site Staff” 페이지를 설정하고 있습니다. 이상적으로는 모든 스태프의 프로필 사진도 함께 표시되었으면 합니다. 예를 들어:

codinghorror


소개: I exist
연락처 정보: stuff

하지만 스태프가 프로필 사진을 변경할 때마다 이 페이지를 수동으로 업데이트하고 싶지 않습니다.

이를 위해 두 가지 방법을 고려하고 있습니다. 사용자가 새로운 프로필 사진을 업로드할 때마다 기존 이미지를 직접 대체하되 링크는 동일하게 유지하는 방식(우리는 이 방식을 선호합니다)이거나, 사용자의 현재 아바타가 위치한 곳으로 리다이렉트되는 링크를 사용하는 방식입니다.

이것을 달성하는 가장 좋은 방법에 대해 의견이 있으신가요? 테스트 결과, 현재 사진의 링크를 단순히 복사하는 방식은 의도대로 작동하지 않았습니다.

위에서 언급했듯이, 각 사용자가 새로운 프로필 사진을 동일한 위치에 업로드하도록 강제할 수 있다면, 동일한 링크가 의도대로 작동할 뿐만 아니라 저장소 공간도 절약할 수 있어 도움이 될 것입니다.

That’s basically the about page isn’t it? Like About - Discourse Meta

The correct way of keeping user info synchronized between different system is using DiscourseConnect - Official Single-Sign-On for Discourse (sso). However that may be too much if all you want is a static page with the current forum admins. In that case you can maybe have a daily/weekly script that parses /about.json and updates it?

Yeah, we’re more than happy with having users register on the actual site, so SSO seems a bit overkill. As for the about page, the issue with that is there’s no place for a bio or outside contact info, which really kills its ability to be a one-stop shop. We also imagine it might be harder to add all of this to the about page than to get an updating image working on another page.

A script isn’t a bad idea, although an instant response time would obviously be better if possible - it’s helpful for a user to be able to visually connect the profile picture with the status, and it could be disorienting to new users if the picture on the page and in use don’t match.

Plus, the fact that the old profile picture is still saved rather than overwritten by a new one seems disadvantageous for storage reasons anyways. If we could simply give each user one link that their profile picture is stored in, and replace that image if they change it, that seems like it really kills two birds with one stone.

There is a site setting to add an external contact method to the about page.

Didn’t mean for the about page to be parsed on your page rendering process, but in a background task and only periodically.

This depends on what tech you use to build said page. For example if you are on the JAMstack, this makes sense on the compilation phase. If it’s a Rails app, maybe an Active Job that runs daily and updates your local cache in the database.

We call those orphaned uploads, and they are cleaned up after a few days automatically via a background task.

Would it make more sense to simply replace the orphaned upload with a new upload?

Seems to me to be a win-win but I’m not a web developer so it’s possible I’m overlooking something.