Utility function to return page type as enum #279
Replies: 1 comment
-
/d/ is a domain page, like /d/google.com. It shows all the threads linking to google.com. A fediverse domain like /d/lemmy.world additionally displays all the non-link threads from that domain. They have a Threads and a Comments tab. Not sure what the latter is for, it seems to only display one comment chain per thread — and it's still about whether the thread links to the domain, not the comments. /tag/ shows all the posts using a specific hashtag. Like #fediverse for example. The All Content button there just links to the main kbin.social/* page, it's not related to the /tag/ route. |
Beta Was this translation helpful? Give feedback.
-
@Pamasich
Here is what I observed so far. Unlike the mod to redirect sort method to specific page routes, since the majority of mods just need to apply some changes based on the structure of the page, it seems to me that pages fall into certain types of "groups," so I don't think we need to return every atomic page type (e.g. a user page that is a collection page -- this has the same appearance as any other collection page, so whether or not it is a child of a user page seems immaterial here).
microblog
can be located anywhere in the path/t/
is anywhere in the path, it is a thread/new/<any>
Settings
Notifications
Everything
User pages
All of these pages functionally share the same styling. In my opinion, these should uniformly return
PAGE.User
.The same applies to variants like the below:
Additional explanation needed
Wasn't sure how to access/find the pages above.
Possibly missing from this list is the Activity page, which is self-contained within a thread but differs from the thread itself.
MBIN (todo: needs more investigation)
/home - the top page
Beta Was this translation helpful? Give feedback.
All reactions