Photon

!photon

@lemdro.id
Create post
phtn.app has moved from Vercel to Cloudflare Pages (+tips if you dont like cloudflare)

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:

InstanceLocationContact
phtn.app (Official)šŸ‡ŗšŸ‡ø US Westphoton@xylight.dev
photon.thesanewriter.comšŸ‡ŗšŸ‡ø US Eastthesanewriter@lemmy.thesanewriter.com
p.darrennathanael.comšŸ‡®šŸ‡© ID Westnoc@darrennathanael.com
phtn.ngn.tfšŸ‡¹šŸ‡· Turkeyservices@ngn.tf
lm.sudovanilla.orgšŸ‡ŗšŸ‡ø US Easthello@sudovanilla.org (behind 1 version)

You can also selfhost it if you'd like.

git clone https://github.com/Xyphyn/photon
cd photon
npm install && ADAPTER=node npm run build
node ./build/index.js 
Photon theming changes, new markdown renderer, and lots of tweaks

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
Translators wanted!

Translators wanted!

Photon has been fully localized and you can translate it to your native language now! (will not be released until v1.30)

You can help translate at the Weblate

If you need help, you can join Photon Translators Matrix room.

Ask for as many clarifications as you need.

Requirements

  • Be fluent in the language you're translating to.
  • No Google translate or other translation tools, as they are often inaccurate without context.
phtn.app keeps stuck on the loading screen (Falkon web browser)

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.

How do you access your subscribed communities on mobile?

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.

installation instructions needed

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?

How would you feel about this feature?

How would you feel about this feature?

Thanks to all translators!

Thanks to all translators!

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

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