• 91 Posts
  • 232 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle




  • Just wanted to chime in here! I think the implementation of cross-posts is up for interpretation (and can definitely be changed if one is preferred over the other). Generally speaking, there are two types of implementations:

    Cross-posts only copy over the title and link of the original post

    • This is what Thunder currently does, unless it’s a text-only post (in which case, it copies over the text content of the original post since that’s the only relevant part of the post)
    • The idea here is that we typically want to change the contents of the cross-post to be relevant to the community that we post to.

    Cross-posts copy all content of the original post (title, link, body)

    • This is what Lemmy UI does, but it injects “crossposted from” into the body of the post
    • This can be useful if you want to post the same post across multiple-communities with the same body

    From this discussion, I do think that it could be valuable to add an easier way to inject the original body of a post into a cross-post. If you would like this to be a feature, please create a new feature request on GitHub!


    A side note on cross-posts:

    I believe that Lemmy considers any posts with the same link as a cross-post. There’s no distinction (from the API) on which post was the “original” post, or whether a post was crossposted “from a community” vs “to a community”. This is also the reason why there is additional metadata for each “cross-post” in Thunder. The additional metadata allows you to figure out when a given post was created to find the “original” post.

    If you’re curious about specific implementation detail, @micahmo@programming.dev might be able to answer them!




  • Hey! Thanks for reporting this and sorry for the delay in response.

    Unfortunately, its quite difficult to implement local-only notifications because of how restricitve Android is with regards to background tasks. The notifications feature is heavily dependent on the specific OS version that you have (different manufacturers do different things to help with power saving, but as a result, breaks/restricts background tasks from running)

    The only thing I can suggest is to turn off battery optimizations for Thunder. After that, disable and re-enable notifications in the settings. If you go to Settings -> Debug, you should also see an option to test out notifications to see if Thunder can trigger them.

    If none of that works, please let me know (ideally on Matrix) and I can help troubleshoot further!
















  • Just wanted to chime in here - I also think having a chat-style widget would also be best for private messages but would be difficult to implement without some workarounds (mainly due to the limitations of the API as you mentioned)!

    But then I discovered that there’s no API call to retrieve your sent messages

    From what I can see in the API, there is a creatorId field that can be specified to grab chats for a given user. This could potentially work by passing in your own account id to retrieve your sent messages (although, this would likely return back your sent messages aggregated across all users so it wouldn’t be ideal)

    It would be a bit of a hack but we could call that API endpoint, and cache the results locally to be used in chats. This adds a layer of complexity since we would need to consider how to keep messages synced up (e.g., if a user edits a message elsewhere, it should be reflected here). There also doesn’t seem to be a way to get a specific private message by id, so that also complicates the issue further 😅