this post was submitted on 09 Apr 2025
15 points (100.0% liked)

Summit

907 readers
16 users here now

Community to discuss Summit, a Lemmy reader for Android.

App (Play Store): https://play.google.com/store/apps/details?id=com.idunnololz.summit

APK: https://github.com/idunnololz/summit-for-lemmy/releases

Support the app

Support me on Patreon

Website: https://summit.idunnololz.com/

founded 2 years ago
MODERATORS
 

I am one of the Lemmy maintainers and work on the project fulltime together with Dessalines. Our work is funded by donations, but these are gradually going down and don't even cover a single dev salary now (see join-lemmy.org). That's why we added a new donation dialog in 0.19.11 which is shown once a year to every user:


Many people use Lemmy exclusively through apps, so we would greatly appreciate if you could add such a dialog to your app too. The logic is relatively simple:

  • From the /api/v3/site response, check my_user.local_user_view.local_user.last_donation_notification
  • If the date is more than one year ago, display a dialog like the one above with buttons Donate, Close
  • When Donate is clicked:
    • Open https://join-lemmy.org/donate
    • Close dialog
    • Call POST /api/v3/user/donation_dialog_shown to hide dialog until next year
  • When Close is clicked also call the donation_dialog_shown endpoint

To test this functionality with a 0.19.11 instance, run the SQL query update local_user set last_donation_notification = '2024-04-07 09:05:06'; which shows the dialog for all local users. You can reuse the code and strings used in lemmy-ui.

Thanks for your consideration!

you are viewing a single comment's thread
view the rest of the comments
[–] nutomic@lemmy.ml 1 points 1 week ago

Hmm that may be true, but now its already implemented like this, and this would require a breaking change. So better to leave it as is. Anyway the logic should not be changed.