Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Tag Feature RFC #4
Tag Feature RFC #4
Changes from 9 commits
9c1dd2d
d8695da
677e1d0
1a911f6
f060201
d894b35
5a3082a
ec85436
b6afe07
2fec10f
bcb8364
6824d06
7b85265
7a7f442
57c0b22
6fb66c8
e6f78c0
3d5c9c3
d582286
ac7963f
31b65de
740b41b
6257bc3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "remote instance" example doesn't make sense, since the activitypub URL of the tag will stay the same regardless of which instance is looking at the post object.
The "flavor" attribute IMO doesn't make much sense and isn't really described in enough detail, it seems like instead it makes more sense to add a
hierarchy: "content-warning/triggers/gore"
orinherits:
property to tags in the future if we want specific tags that imply generic tags.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, the remote instance example was a symptom of me not really understanding activitypub (which I think is pretty obvious by the extended fixing needed in that section so far, thank you for that a lot)
Personal style preference but I would opt for the
inherits
field instead of thehierarchy
one, reference the parent tag URL there once and have the server resolve the tag recursively if not already known instead of shipping the entire inheritance tree with every occurrence of the tag. Especially since only the immediate parent needs to be known to sort out the correct display behaviour of a tag. Leaving the field empty (or omitting it entirely, not sure which one would be best practice) would then mean the tag is a root tag that starts a new behaviour tree (for now only display behaviour).Including this field later should be possible but would absolutely require a way for admins and moderators to change a tag's parent from the settings (something I think is a good idea anyway).
I've moved this specific part to the Future Possibilities Section and added a bit more detail to my thoughts. I also replaced the previous example tags with the tags present in the post example, it's small change but I think it elevates the readability.
See d582286 for the changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might make sense to do what you say, but it's also a lot more complex. IMO tags shouldn't need resolution or complex whatever algorithms at all, the hierarchy should purely be a way to allow prefix-based filtering in a bit of a structured way. everything you need to know about the tag should be contained within the tag.
anyways, hierarchy is a discussion for a nother time i guess and it's good to leave it out for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While it'd definitely be useful to federate tags as hashtags and such, I don't think Lemmy should restrict itself to the limitations of hashtags. Instead, consider creating an AP extension (or adopting an already existing extension if one already exists) that:
Accept/
Reject/
so implementations can create some sort of "tag suggestion" UI?)This would make it so that any other fediverse projects that want a similar level of flexibility in tags can just adopt Lemmy's extension and get interoperability "for free", even if they're built for different audiences.
Perhaps some tags could be marked as "hashtaggable", but I don't think all tags should federate as hashtags. a tag such as
Spoiler
does not need a hashtag. (in fact, a CW would be more appropriate!), not to mention the more hashtags you add the more Update activities you need to broadcast per tag change.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be worth writing an FEP about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw several discussions around content labeling, and Web Annotation Protocol is often brought up. It might be a good foundation for such FEP. No need to adopt the protocol as is, but I think their vocabulary can be useful.