Skip to content

Conversation

@fauno
Copy link
Collaborator

@fauno fauno commented Jan 28, 2025

No description provided.

@fauno fauno self-assigned this Jan 28, 2025
let object = activity.object
if (typeof object !== 'string') {
if ((object != null) && 'id' in object && typeof object.id === 'string') {
object = object.id
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a helper to obtain the object id?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we could stand to have a bunch of helpers, not sure when to fit it in

Copy link
Contributor

@RangerMauve RangerMauve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, ty!

let object = activity.object
if (typeof object !== 'string') {
if ((object != null) && 'id' in object && typeof object.id === 'string') {
object = object.id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we could stand to have a bunch of helpers, not sure when to fit it in

@RangerMauve RangerMauve merged commit 9dec86f into main Jan 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants