Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 124 Adding missing attribute #125

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tclaus
Copy link
Member

@tclaus tclaus commented Mar 29, 2022

Adds the thread_parent_guid_ attribute to comment as described in the docs.

Adds the thread_parent_guid_ attribute to comment as described in the docs.
@tclaus tclaus force-pushed the bugfix/124/add_thread_parent_guid_to_comment branch from c723573 to b6dd7ca Compare March 29, 2022 17:57
Copy link
Member

@SuperTux88 SuperTux88 left a comment

Choose a reason for hiding this comment

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

As already mentioned in #124 (comment), this isn't in the library yet intentionally, because adding it would require explicit handling on the diaspora side. So unless you also want to add support and handling for it on the diaspora side (which will be a lot more work than just adding the field here, since it also requires a migration of existing data from friendica), I wouldn't recommend to add this yet. Because if this gets merged we wouldn't be able to upgrade the lib anymore for diaspora until it's properly handled there.

Also sidenote: A more useful commit message would be appreciated where a short "what was done" is in the first line, and a fixes #124 in an additional line so GitHub actually detects that and auto-closes the issue when it gets merged. Currently it's kinda the other way around, but without the # GitHub doesn't even detect the issue.

# A random string of at least 16 chars pointing to a parent comment.
# @see Validation::Rule::Guid
# @return [String] parent comment guid
property :thread_parent_guid, :string, optional: true
Copy link
Member

Choose a reason for hiding this comment

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

The field should also be added to the CommentValidator to validate it's a valid GUID.
And it should also be added to the comment entity in lib/diaspora_federation/schemas/federation_entities.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants