Skip Navigation
User banner
Photon
Photon
Members 285
Posts 62
Active Today 1
  • Svelte 5 migration

    5
  • Translators wanted!

    8
  • Display up/downvote count in Firefox (solved)

    Thank you for this beautiful app!

    I have a minor issue I cannot seem to resolve - the upvote/downvote count vanishes immediately after reloading the page. I am using Librewolf (that is based on Firefox) and I have tried to disable uBlock Origin entirely but I can't get it to display correctly. Anyone else ran into this and found a solution? Thanks!

    Image attached how it looks for me.

    EDIT: Thank you for the responses, I'm not entirely sure what I did, but now it's working as intended. I'm very happy about that because Photon rocks!

    3
  • sort comments button (visual bug)

    Hey, I noticed a small visual bug where sort comments button doesn't update after choosing a different selection. The comments still sort just fine, it's just the button that doesn't update.

    1
  • Post language visibility settings?

    It seems like contrary to Lemmy-UI, Photon does not display the user supplied post language anywhere and also has no way to set the post language in the UI. Nor does it have the profile setting to set language visibility.

    I generally think that this feature in Lemmy-ui causes more harm than good due to the various ways in which people accidentally deselect "undetermined" as a language option, or how community mods accidentally prevent people from posting due to strict language restrictions... and a bunch of other related bugs that caused me to abandon this feature.

    But having no representation at all seems like a bad idea given so much of Lemmy uses that feature and it also seems like Photon does hide wrongly language tagged posts if people misconfigure their profile settings in Lemmy-ui?

    I can't confirm the latter, but this report https://slrpnk.net/post/14769073 sounds a lot like that is what is happening.

    0
  • Pumpkin theme for Photon

    I usually don't like orange/brown themes but I think this one's cozy. I decided to make it for the autumn season.

    {"slate":{"25":"255 248 240","50":"253 244 232","100":"251 236 221","200":"246 220 198","300":"240 195 165","400":"219 162 122","500":"196 133 89","600":"133 108 89","700":"89 72 59","800":"66 54 44","900":"44 36 29","950":"33 27 22"},"zinc":{"50":"255 243 230","100":"250 228 207","300":"227 186 156","400":"204 144 105","500":"181 102 54","600":"120 96 79","700":"82 66 54","800":"61 49 40","900":"41 33 27","925":"33 26 22","950":"25 20 16"},"primary":{"100":"255 245 235","900":"122 48 0"},"other":{"black":"25 20 16","white":"255 252 248"}}

    To import, go to Main menu > Themes > Click the + to make a new theme > Import > Paste and import

    0
  • Photon roadmap

    I used to ask these a lot during Photon's early development, but I decided to do one now.

    Are there any major features you'd like added or issues you'd want fixed?

    2
  • Replace lemmy-ui

    Hi,

    I want to replace lemmy-ui with photon. How can I actually do this? Do I need to just install it using docker and reverse proxy to the port? Is there any docker compose method? Where can I set the environment variables?

    TIA

    9
  • Emerald theme for Photon

    Saw people on slrpnk.net were looking for a photon theme so I decided to make one. I'm not necessarily expecting this to be used at slrpnk.net, but I like the theme so I'll be using it. It has a nice light theme too.

    It's pretty similar to a recent post for a "wintergreen" theme, this one is less saturated.

    json {"slate":{"25":"245 248 247","50":"235 242 241","100":"225 236 235","200":"205 218 222","300":"185 200 209","400":"155 172 186","500":"125 144 163","600":"95 116 140","700":"75 98 122","800":"55 80 104","900":"35 62 86","950":"25 44 68"},"zinc":{"50":"245 248 248","100":"220 235 233","200":"185 214 210","300":"143 185 182","400":"103 154 151","500":"77 127 125","600":"60 101 100","700":"51 82 82","800":"44 66 67","900":"35 51 51","925":"27 41 41","950":"20 31 32"},"primary":{"100":"180 200 199","900":"30 65 64"},"other":{"black":"20 20 30","white":"245 248 247"}}

    6
  • Photon survey 2024

    forms.gle Photon survey

    I'd like to know what photon's users use it mostly for!

    Photon survey

    I'd like to learn about the community that uses Photon, so I've decided to make a survey! You can answer it if you like. In about a week I'll collect the responses and see if anything's interesting, and then I'll make a post showing any discoveries.

    The survey just has a few questions about demographics, Lemmy usage, and knowledge of Photon's features.

    3
  • Need suggestions, potential security issue?

    this security issue can only be triggered by users fault, but it's up to the UI designer to prevent user mistakes causing potential credential leaks.

    The login page

    The login page is designed to be as simple as possible. Only 1 page, no extra steps. It'll validate whatever instance url you type in to ensure it's actually a Lemmy instance.

    The problem

    If the user mistypes the instance url to a typo squatting instance, your credentials were just sent straight to them. Bad. For example, I could setup an instance named lemmu.world, and if someone accidentally mistypes lemmy.world as that, I get their credentials for free.

    Potential solutions

    I'm not sure which one would be best as they all have problems.

    • Require you to type the instance before you can start typing your credentials.
      • This complicates things and adds an extra step. This also wouldn't completely solve the problem.
    • Add an auto complete list
      • This will work for popular instances as they'll know that they have the wrong url because it disappeared from the auto complete. However, I'd need to keep this list updated and id prefer photon to have minimal external ties. This also wouldn't work for small instances.
    • Add typo checking
      • This has the same problem as above as I'd need to keep common misspellings updated and I want photon to have minimal external ties.

    Any ideas? For now, this isn't a problem as long as you double check the instance you're logging in with, and there's no cases of this AFAIK.

    4
  • phtn.app has moved from Vercel to Cloudflare Pages (+tips if you dont like cloudflare)

    TL;DR

    Vercel has been a PITA for a few reasons I won't go into, and I eventually reached a usage limit that made the site unusuable. Cloudflare pages has no usage limits, so I have switched to that. Nothing different should be noticable, except that initial loads might be slightly faster.

    if you don't like cloudflare

    I understand lots of people dislike cloudflare, so if you want to get away from it, here are some publicly hosted instances:

    | Instance | Location | Contact | | --------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------- | | phtn.app (Official) | šŸ‡ŗšŸ‡ø US West | photon@xylight.dev | | photon.thesanewriter.com | šŸ‡ŗšŸ‡ø US East | thesanewriter@lemmy.thesanewriter.com | | p.darrennathanael.com | šŸ‡®šŸ‡© ID West | noc@darrennathanael.com | |zhenyapav@zhenyapav.com |admin@buckodr.ink | | phtn.ngn.tf | šŸ‡¹šŸ‡· Turkey | services@ngn.tf | | lm.sudovanilla.org | šŸ‡ŗšŸ‡ø US East | hello@sudovanilla.org (behind 1 version) |

    You can also selfhost it if you'd like.

    sh git clone https://github.com/Xyphyn/photon cd photon npm install && ADAPTER=node npm run build node ./build/index.js

    0
  • phtn.app keeps stuck on the loading screen (Falkon web browser)

    Just a few moments ago learned about phtn.app, as I was using photon.lemmy.world. I'm trying to use it with KDE's Falkon web browser, my daily web browser in desktop, which is based on chromium (though as far as I know it's not cutting edge chromium).

    photon.lemmy.world works just fine, but I don't get to pick spanish from the available languages - while in phtn.app is there (I used Firefox's web browser to check it and learn there's quite a few differences between phtn.app and photon.lemmy.world).

    The thing is that phtn.app stucks on the loading screen (the circle spinner) with Falkon. Not sure if it's Falkon being funky or there's something that could be done on phtn.app. All I can see in the web inspector is the following:

    !

    Not wanting to pull Firefox/Chrome/whatever and all their dependencies just for this, so I'd like to know if this can be addressed in phtn.app's side.

    2
  • How do you access your subscribed communities on mobile?

    I don't see how I can do that. There is no way to access the sidebar that's visible on desktop when I'm on mobile.

    5
  • Translator badge!

    On phtn.app I can give all translators of Photon a badge, here's how it looks on @Blisterexe@lemmy.zip (the French translator!)

    If you want this and you translated the app, just add a comment and I'll try to verify your contributions. Then I'll add it to phtn.app. I can add and remove this at any time, and this will only appear on phtn.app.

    To get the badge, you must have

    • Validly translated at least 30 strings of any language (other than English)
    • Proof that you are the contributor on weblate (using the same username on both should be enough)
    13
  • 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
  • installation instructions needed

    The readme talks about docker. Iā€™m not a docker user. I did a git clone when I was on a decent connection. ATM Iā€™m not on a decent connection. The releases page lacks file sizes. And MS Github conceals the size: curl -LI 'https://github.com/Xyphyn/photon/archive/refs/tags/v1.31.2-fix.1.tar.gz' | grep -i 'content-length' output: > content-length: 0

    So instead of fetching the tarball of unknown size, I need to know how to build either the app or the tarball from the cloned repo. Is that documented anywhere?

    3
  • 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
  • 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
  • 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'?

    5