this post was submitted on 09 Jul 2025
59 points (100.0% liked)
hexbear
10494 readers
1 users here now
Hexbear Meta Community
Posts should be a a Proposal (idea for changing the site), Feedback (regarding non-technical aspects of the site, for technical please use https://hexbear.net/c/feedback), or Appeals (regarding admin/moderator actions).
Discussion regarding these will be within comments under the post, appeals and feedback that is resolve may be removed as well as duplicate posts.
The following behavior will result in mod action:
-
People that are frequently making vague posts or comments.
-
People that are hostile, taking the least charitable interpretation or engaging in bad-faith
-
People that are maliciously trying to stir up drama
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Since you've worked on the site before, maybe you can point me in the right direction:
The function that actually creates the tagline (replacing
CURRENT_YEAR,MOSCOW_TIME, and so on) seems to behexbear_setupTagline, which is fed a random tagline from the taglines array):Code block
It's not necessary to understand this particular snippet, but I was wondering where the corresponding non-obfuscated code can be found (if it's publicly available). I checked the Hexbear GitHub but couldn't find it in the JS client repository or anywhere else, which seemed odd. Is its absence related to this open issue?
Not that it matters, but if you do end up playing around with any of this logic, you could replace the fiddly time math with the more elegant code used for the sidebar clock (to be fair to whoever wrote said fiddly math, the features used literally hadn't been implemented in Firefox yet when the site was born):
Thank you for your service (which, if I understand the changelog correctly, includes upstreaming taglines and custom emotes)! Open source development can be thankless work at times, but I appreciate the effort everyone puts in to keep this site running,
It's in the lemmy-ui repo, on hexbear branch
TIL that GitHub search only indexes the main branch! Didn't need it this time because you told me what branch to look in, but now I know how to efficiently search across branches for future reference thanks to this StackOverflow post; for instance, I could have found the file I was looking for using the following command
Here's the relevant file, if anyone's curious:
https://github.com/hexbear-collective/lemmy-ui/blob/0ad34285aa653fc438af475afc927f48b2032612/src/shared/components/home/home.tsx#L1124-L1133