diff options
| author | 2025-04-19 13:36:35 +0200 | |
|---|---|---|
| committer | 2025-04-19 13:36:35 +0200 | |
| commit | d308fd0d0aa8779b0ed19a26b1825265205420ff (patch) | |
| tree | 695883c4e1736d331535331206a9394d88073fba | |
| parent | [chore] Update robots.txt with latest ai bullshit (#4024) (diff) | |
| download | gotosocial-d308fd0d0aa8779b0ed19a26b1825265205420ff.tar.xz | |
[chore] Little settings panel report view tweak (#4025)v0.19.0-rc2
| -rw-r--r-- | docs/api/swagger.yaml | 1 | ||||
| -rw-r--r-- | internal/api/client/statuses/statushistory.go | 2 | ||||
| -rw-r--r-- | web/source/settings/components/status.tsx | 18 | ||||
| -rw-r--r-- | web/source/settings/lib/types/status.ts | 1 |
4 files changed, 11 insertions, 11 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index d79a607a5..011458723 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -11171,7 +11171,6 @@ paths: - statuses /api/v1/statuses/{id}/history: get: - description: 'UNIMPLEMENTED: Currently this endpoint will always return an array of length 1, containing only the latest/current version of the status.' operationId: statusHistoryGet parameters: - description: Target status ID. diff --git a/internal/api/client/statuses/statushistory.go b/internal/api/client/statuses/statushistory.go index dc5932ff7..d493b6ffe 100644 --- a/internal/api/client/statuses/statushistory.go +++ b/internal/api/client/statuses/statushistory.go @@ -29,8 +29,6 @@ import ( // // View edit history of status with the given ID. // -// UNIMPLEMENTED: Currently this endpoint will always return an array of length 1, containing only the latest/current version of the status. -// // --- // tags: // - statuses diff --git a/web/source/settings/components/status.tsx b/web/source/settings/components/status.tsx index 9d0dfa2b4..e8ae4b2df 100644 --- a/web/source/settings/components/status.tsx +++ b/web/source/settings/components/status.tsx @@ -299,7 +299,7 @@ function StatusFooter({ status }: { status: StatusType }) { minute: '2-digit', hour12: false })} - </time> + </time>{ status.edited_at && "*" } </a> </dd> </div> @@ -322,13 +322,15 @@ function StatusFooter({ status }: { status: StatusType }) { </summary> <dl className="stats-more-info-content"> <div className="stats-grouping"> - <div className="stats-item" title="Language"> - <dt> - <span className="sr-only">Language</span> - <i className="fa fa-language" aria-hidden="true"></i> - </dt> - <dd>{status.language}</dd> - </div> + { status.language && + <div className="stats-item" title="Language"> + <dt> + <span className="sr-only">Language</span> + <i className="fa fa-language" aria-hidden="true"></i> + </dt> + <dd>{status.language}</dd> + </div> + } <div className="stats-item" title="Replies"> <dt> <span className="sr-only">Replies</span> diff --git a/web/source/settings/lib/types/status.ts b/web/source/settings/lib/types/status.ts index e46f4a6b7..1e8cc273e 100644 --- a/web/source/settings/lib/types/status.ts +++ b/web/source/settings/lib/types/status.ts @@ -23,6 +23,7 @@ import { CustomEmoji } from "./custom-emoji"; export interface Status { id: string; created_at: string; + edited_at: string | null; in_reply_to_id: string | null; in_reply_to_account_id: string | null; sensitive: boolean; |
