We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ef973 commit e4a8486Copy full SHA for e4a8486
1 file changed
src/containers/extension-library.jsx
@@ -257,7 +257,16 @@ const toCCWGalleryItem = (item) => {
257
const credits = [];
258
if (item.publisher) {
259
if (item.publisher.nickname) {
260
- credits.push(item.publisher.nickname);
+ const oid = item.publisher.oid || item.publisher._id || item.publisher.id || '';
261
+ if (oid) {
262
+ credits.push(
263
+ <a href={`https://www.ccw.site/student/${oid}`} target="_blank" rel="noreferrer" key={oid}>
264
+ {item.publisher.nickname}
265
+ </a>
266
+ );
267
+ } else {
268
+ credits.push(item.publisher.nickname);
269
+ }
270
}
271
272
return {
0 commit comments