Skip Navigation
community not federating
  • I need to add language settings to communities and profiles. I really dislike how lemmy handles this though.

    If you change it in lemmy-ui, it will propagate to Photon because it's an account wide setting.

  • Replace lemmy-ui
  • You should be able to just replace the lemmy-ui image with the photon image, but you'll need to set a few env variables

    PUBLIC_INSTANCE_URL: the domain your Lemmy instance is accessed from. (like lemmy.world)

    PUBLIC_INTERNAL_INSTANCE: the url and port for the internal server to access (eg lemmy:8536)

    PUBLIC_SSR_ENABLED: enable this to allow server rendering which improves SEO

    PUBLIC_MIGRATE_COOKIE: this will automatically migrate lemmy-ui logins to photon.

  • Warning to mobile Fediverse commenters
  • Photon seems to have a semantic layout that firefox detects as settable into reader mode.

  • Request: translate option in sidebar.
  • Photon technically has it but you need to use your own libretranslate instance since I'm not paying for that.

  • Make this thread look like it's your first day on the internet
  • Hey how did you get my world 馃槨馃槨

  • Everybody in SoCal today...
  • Can confirm. AAAAAAAAAAAAA (peaked 39c today)

  • Thanks to all translators!
  • Edit: there was an issue and the weblate got locked. I've fixed it now.

    I think you need to be logged in to the weblate to create a new language. Otherwise, I can create the new language and then you can make suggestions on the weblate anonymously.

  • Photon theming changes, new markdown renderer, and lots of tweaks

    verification for lemmy apps: LemmyApps/#2

    cross-posted from: https://lemm.ee/post/39906482 >There was like 8 prereleases for this because i kept changing stuff. This is actually going to be from v1.31.1 and v1.31.2. > > ## Biggest changes > > ### Command palette > - ! > - Press / or ctrl + p and start typing to instantly go to a page, switch themes, switch accounts, etc. > > ### Theming changes > - You can now have multiple presets for themes, and there are 5 default presets. (Default, Classic, AMOLED, Catppuccin, Lightly) > - Admins can set their own default theme for photon with PUBLIC_THEME. > > ### New markdown renderer > - Photon now uses svelte-markdown for markdown rendering, which lets me use custom components for markdown. > - Instead of only style changes, I can run actual code, meaning images can be made expandable and codeblocks can be copyable. > > ### Lots of languages > - There are a ton of languages thanks to the community. > - English > - Hebrew > - Bulgarian > - Chinese > - Dutch > - Estonian > - Finnish > - French > - German > - Japanese > - Polish > - Portuguese > > ## Minor features > > - New "link actions" menu > - This will have options for archive sites to bypass paywalls, etc. > - Media bias action was moved next to here, or in here depending on your selected post style. > - Allow uploading multiple images at a time > - Select menus use my own components now, making them more powerful > - Add infinite scroll to communities too > - Add uploaded media/voted posts in your profile page > - Using my own service worker now, so caches should work properly > > ## Other stuff > > - Use sharper icons for readability >

    4
    Autocorrect Rule
  • Same happens for me on gboard.

  • [Meta] Is this community still active, or should it be closed? If it's not active anymore, any suggestions for alternatives?
  • that was possible in the first place?

    Are you an admin or something? I'd like to know what the behavior should be.

  • which front-rule is everyone using?
  • Photon has complete moderator capabilities, what's missing?

  • Why use MBin instead of Lemmy?
  • Photon is available for any instance at https://phtn.app.

    Alexandrite is available for any instance at https://alexandrite.app.

    I don't like when instances will host photon for anything other than the default interface, as then it's just a more limited, outdated version of photon and another point of failure.

  • How would you feel about this feature?
  • I wonder what happened to the Auto TLDR bot.

  • [v1.31.2] Photon theming changes, new markdown renderer, and lots of tweaks
  • I was asking about the dev console. I pushed an update that fixes this.

  • [v1.31.2] Photon theming changes, new markdown renderer, and lots of tweaks

    There was like 8 prereleases for this because i kept changing stuff. This is actually going to be from v1.31.1 and v1.31.2.

    Biggest changes

    Command palette

    • !
    • Press / or ctrl + p and start typing to instantly go to a page, switch themes, switch accounts, etc.

    Theming changes

    • You can now have multiple presets for themes, and there are 5 default presets. (Default, Classic, AMOLED, Catppuccin, Lightly)
    • Admins can set their own default theme for photon with PUBLIC_THEME.

    New markdown renderer

    • Photon now uses svelte-markdown for markdown rendering, which lets me use custom components for markdown.
    • Instead of only style changes, I can run actual code, meaning images can be made expandable and codeblocks can be copyable.

    Lots of languages

    • There are a ton of languages thanks to the community.
    • English
    • Hebrew
    • Bulgarian
    • Chinese
    • Dutch
    • Estonian
    • Finnish
    • French
    • German
    • Japanese
    • Polish
    • Portuguese

    Minor features

    • New "link actions" menu
      • This will have options for archive sites to bypass paywalls, etc.
      • Media bias action was moved next to here, or in here depending on your selected post style.
    • Allow uploading multiple images at a time
    • Select menus use my own components now, making them more powerful
    • Add infinite scroll to communities too
    • Add uploaded media/voted posts in your profile page
    • Using my own service worker now, so caches should work properly

    Other stuff

    • Use sharper icons for readability
    6
    What fresh fuckery is this? 馃う
  • I dont know if youtube has h264 support

  • How would you feel about this feature?

    I've been messed around with random features in photon, and i tried something stupid today.

    I was experimenting with an AI post summary feature, (just because i wanted an excuse to make a cool animation) but as I was using it, it actually ended up kind of useful.

    If I were to implement this feature, it would only work like this:

    • The user would have to opt-in manually.
    • The user would need to specify what AI service they wish to use.
    • The user would have to specify their own API key, if the service requires one.

    In the end, I probably won't add this, since you can just copy/paste the content into an AI app. But it could also be slightly more convenient.

    What do you think?

    12
    Have you ever switched to light mode after being on dark mode for years?
  • Even as the dev I feel this about photon, i spend so much time messing with dark theme's colors just to end up preferring light mode anyway

  • What fresh fuckery is this? 馃う
  • It could be that it's playing in a codec that your mobile browser doesn't support like av1 or something. Not sure though, is this happening with every video?

  • Gabby Thomas
  • Just curious, how do you compress images? Is there a web API?

  • New frontends!
  • Any ideas on a way to make it more intuitive that you can click it?

  • Thanks to all translators!

    I just wanted to say thanks to all the translators of photon! Even if you only changed 1 word, translating this large app is not easy, especially because it's hard to find the context for certain actions.

    With all of your help, Photon is now available in 13 languages!

    English, Hebrew, Bulgarian, Estonian, Finnish, French, German, Japanese, Dutch, Polish, Chinese, and Portuguese!

    If you want to help translate, you can do so at https://weblate.xylight.dev. You can translate as little or as much as you want!

    5
    To any devs of a new Lemmy app... don't hardcode your app's strings!

    This is applicable to almost any piece of software with text in it. When starting your new app, you should make sure you are using a separate language file for the strings in your app. This makes text reusable, and you can change it all in one place.

    Once your app gains a community, if you did this, you can also get translators!

    With Photon i made the massive mistake of hardcoding everything up until the app became massive, and my PR for un-hardcoding all the strings looks like this:

    !The amount of lines modified in the GitHub PR. 2,067 lines added, 1,082 removed.

    It was worth it though! Because the community has translated it into 11 languages!

    !

    18
    Which dataset should be used for Photon's media bias action?

    Photon has a feature on links which gets data from Media Bias Fact Check to determine its media bias. However, I've seen controversy on lemmy.world's bot with this, and I'm not sure if this is the best place to get the data from.

    Should I use a different dataset? like allsides'?

    4
    Admins: Photon now offers a node server

    A lot of admins trying to host photon have been unable to after i switched from Node to Bun server. Bun is a newer server that is significantly faster, but it seems to have caused issues when hosting for weird reasons when people try to host it.

    Starting from v1.31.2, I will publish node images as well as bun images, it's very simple to access:

    Instead of ghcr.io/xyphyn/photon:tag, do ghcr.io/xyphyn/photon:tag-node

    1
    Did people think the old dark theme was black?

    When I changed the default theme I saw someone say I should name the classic theme "AMOLED". Apparently, the theme was so dark to a lot of people that it appeared black! I guess my designer's eye and working on photon for over a year made me not notice this.

    The classic theme uses a very dark gray for the main background, and an even darker gray for the sides. There was never any black, except in very very early versions of Photon.

    2
    i finally fixed user and community links

    TL;DR: nonstandard community and user links should work properly now, when people waste their time by doing [!community@instance.url](https://instance.url/c/community) instead of !community@instance.url

    rant

    ok so why do people, instead of using the proper syntax for users and communities, (!community@instance.url and @user@instance.url) they take the EXTRA EFFORT to make it a NONSTANDARD MARKDOWN LINK which means linkify-it (which even the official lemmy-ui uses) won't work properly because its meant to make custom syntax like this to work very nicely BUT THEY MAKE IT A MARKDOWN LINK which means I SHOULDNT BE MODIFYING IT but they make it so i have to BECAUSE THEY TYPED EXTRA KEYSTROKES, USED MORE DB DATA, JUST TO RUIN THEIR LINK. JUST USE THE NORMAL LEMMY LINK FORMAT INSTEAD OF MARKDOWN LINK STUFF AAAA ok so get this right people are out here taking the PERFECTLY GOOD syntax for users and communities the one with exclamation point and at sign and whatever and blah but NOPE THAT MAKES TOO MUCH SENSE because im such a GENIUS im gonna wrap in a MARKDOWN LINK. WHY WHY WHY WHY it BREAKS STUFF and make s thing more complICATED i think every lemmy user should be sentenced to 87 years of parsing MARKDOWN WITH REGEX per LINK THEY DO THIS WITH. THIS MESSES EVERYTHING UP stop trying to be sepcial newsflash YOURe NOT JuST stop WITH thiS S

    /s

    test

    3
    [tag1,tag2] [tag3] New markdown renderer

    This will be a test post for markdown, as I'm switching to a faster markdown renderer that will allow me to do some cool stuff, like allow expanding images and running my code in markdown.

    It might release with v1.31.2.

    14
    Photon v1.31 -- Command Palette!

    arguably a bigger update than v1.31, lots of backend changes for better speed

    i've been using this command palette a lot because it makes doing everything so fast. let me know if there's any action or link you'd like added, since it's very easy to do.

    What's Changed

    • feat: add a command palette by @Xyphyn in https://github.com/Xyphyn/photon/pull/364

      • Press / or ctrl + p or right click the photon logo to bring up the command palette
      • Instantly start typing to find a link, or run an action
    • design: Make compact mode even more compact

    • misc: add infinite scroll to communities too

    • code: rewrite how post feeds are handled, improving speed and cleanliness and allowing more opportunities for caching.

    • misc: add support for upvoted/downvoted posts and uploaded media in the profile page

    • strings: tweak some strings for better clarity

    • Vertical postlink layout for mobile by @sevonj in https://github.com/Xyphyn/photon/pull/360

    Full Changelog: https://github.com/Xyphyn/photon/compare/v1.31.0-fix.1...v1.31.1-rc.1

    3
    Command Palette!

    I'm working on a command palette for Photon, which will allow you to press ctrl + p or / to open a prompt where you can type and go to a page or a recent post instantly.

    Are there any actions or links that you'd want me to add?

    5
    [Released] [1.31.0] Big speed improvements and **infinite scroll**
    github.com Comparing v1.30.4...v1.31.0-rc.1 路 Xyphyn/photon

    An opinionated web client for Lemmy to help users discover the fediverse. - Comparing v1.30.4...v1.31.0-rc.1 路 Xyphyn/photon

    Comparing v1.30.4...v1.31.0-rc.1 路 Xyphyn/photon

    >This update is currently available on phtn.app, with a tagged release coming soon. Post navigation is down by 65% and returning from posts is instant. > > ## What's Changed > * feat: add infinite scroll > - You can now scroll down infinitely without clicking next! > - As a bonus, returning from a post page is now instant. > - Of course, you can turn it off in settings. > - A virtual list is also used so that infinite posts can be loaded with no performance impact. > * feat: parse tags from title > - Tesseract dev and I had the same idea, [tags in brackets] in posts will automatically be converted to a badge/flair. You can click it to search for all posts with that tag in a community. > - I added options which let you choose flairs to blur posts of or hide. > * tweak link design > * improve smaller screen support > * codebase: move $profile to a derived, immutable store to improve consistency > * i18n: add new languages/update languages > - Chinese > - English > - Estonian > - French > - Finnish > - German > - Hebrew > - Portuguese > > * Update p.darrennathanael.com photon region by @DarrenOfficial in https://github.com/Xyphyn/photon/pull/350 > * Remove empty space left by hideTitle by @sevonj in https://github.com/Xyphyn/photon/pull/352 > * docs: Post component comments by @sevonj in https://github.com/Xyphyn/photon/pull/354 > > > Full Changelog: https://github.com/Xyphyn/photon/compare/v1.30.4...v1.31.0-rc.1

    4
    [v1.31.0] Big speed improvements and **infinite scroll**
    github.com Comparing v1.30.4...v1.31.0-rc.1 路 Xyphyn/photon

    A replacement for lemmy-ui with more features, a better design, and more customizability. - Comparing v1.30.4...v1.31.0-rc.1 路 Xyphyn/photon

    Comparing v1.30.4...v1.31.0-rc.1 路 Xyphyn/photon

    This update is currently available on phtn.app, with a tagged release coming soon. Post navigation is down by 65% and returning from posts is instant.

    What's Changed

    • feat: add infinite scroll

      • You can now scroll down infinitely without clicking next!
      • As a bonus, returning from a post page is now instant.
      • Of course, you can turn it off in settings.
      • A virtual list is also used so that infinite posts can be loaded with no performance impact.
    • feat: parse tags from title

      • Tesseract dev and I had the same idea, [tags in brackets] in posts will automatically be converted to a badge/flair. You can click it to search for all posts with that tag in a community.
      • I added options which let you choose flairs to blur posts of or hide.
    • tweak link design

    • improve smaller screen support

    • codebase: move $profile to a derived, immutable store to improve consistency

    • i18n: add new languages/update languages

      • Chinese
      • English
      • Estonian
      • French
      • Finnish
      • German
      • Hebrew
      • Portuguese
    • Update p.darrennathanael.com photon region by @DarrenOfficial in https://github.com/Xyphyn/photon/pull/350

    • Remove empty space left by hideTitle by @sevonj in https://github.com/Xyphyn/photon/pull/352

    • docs: Post component comments by @sevonj in https://github.com/Xyphyn/photon/pull/354

    Full Changelog: https://github.com/Xyphyn/photon/compare/v1.30.4...v1.31.0-rc.1

    1
    test

    I'm working on adding a feature that will convert tags in the title to flairs, which you can add custom filters/rules to.

    4
    Big speed improvements and **infinite scroll**
    github.com feat: add infinite scroll by Xyphyn 路 Pull Request #349 路 Xyphyn/photon

    On certain pages, you will be able to scroll infinitely without clicking "next". Going back after viewing a post should restore your position and the posts you were viewing. As a bonus wi...

    feat: add infinite scroll by Xyphyn 路 Pull Request #349 路 Xyphyn/photon

    Hey, I've been working on a few changes to photon that make it a lot faster to open posts and return, and as a result of these changes I can also make infinite scroll work. If you go to this link, Vercel will have commented on the post with a preview link. Those are basically the beta links.

    Preview Link

    Let me know of any bugs and any changes you'd like!

    Current roadmap

    • [x] Make this not duplicate posts in memory
    • [ ] Make this work on all posts
    • [x] Use a virtual list for better render performance
    4
    Xylight Xylight (Photon Dev) @lemm.ee

    I am the developer of the Photon client. Try it out

    https://xylight.dev

    Posts 17
    Comments 93
    Moderates