mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 01:54:47 +00:00
Show orgs in project card when a project is owned by an org (#5892)
* fix: link to user using id instead of username * feat: show org in project card * fix: account for outdated documents * refactor: use struct to store owner information * fix: default new fields * fix lint
This commit is contained in:
@@ -17,6 +17,12 @@ pub struct LegacyResultSearchProject {
|
||||
pub project_type: String,
|
||||
pub slug: Option<String>,
|
||||
pub author: String,
|
||||
#[serde(default)]
|
||||
pub author_id: Option<String>,
|
||||
#[serde(default)]
|
||||
pub organization: Option<String>,
|
||||
#[serde(default)]
|
||||
pub organization_id: Option<String>,
|
||||
pub title: String,
|
||||
pub description: String,
|
||||
pub categories: Vec<String>,
|
||||
@@ -139,6 +145,9 @@ impl LegacyResultSearchProject {
|
||||
project_id: result_search_project.project_id,
|
||||
slug: result_search_project.slug,
|
||||
author: result_search_project.author,
|
||||
author_id: result_search_project.author_id,
|
||||
organization: result_search_project.organization,
|
||||
organization_id: result_search_project.organization_id,
|
||||
title: result_search_project.name,
|
||||
description: result_search_project.summary,
|
||||
display_categories,
|
||||
|
||||
Reference in New Issue
Block a user