Selectively show the additional metadata if it isn't in the display string at all
This commit is contained in:
parent
88987fb6c7
commit
68a654f9e8
5 changed files with 33 additions and 7 deletions
|
@ -25,6 +25,7 @@ interface ActivityLog extends Model<'actor'> {
|
|||
ip: string;
|
||||
description: string | null;
|
||||
properties: Record<string, string | unknown>;
|
||||
hasAdditionalMetadata: boolean;
|
||||
timestamp: Date;
|
||||
relationships: {
|
||||
actor: User | null;
|
||||
|
|
|
@ -36,6 +36,7 @@ export default class Transformers {
|
|||
ip: attributes.ip,
|
||||
description: attributes.description,
|
||||
properties: attributes.properties,
|
||||
hasAdditionalMetadata: attributes.has_additional_metadata ?? false,
|
||||
timestamp: new Date(attributes.timestamp),
|
||||
relationships: {
|
||||
actor: transform(actor as FractalResponseData, this.toUser, null),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue