-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieve Reddit title when sharing link with floccus on on Android #1854
Comments
Hello 👋 Thank you for taking the time to open this issue with floccus. I know it's frustrating when software One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the Nextcloud forum, I look forward to working with you on this issue |
Hi @de-code @andybalaam Perhaps you have some insight here :) |
Yeah the example I dealt with was when the Amazon app included the title+URL all in the Maybe Reddit includes the info in some other unexpected place. We could make progress by logging out exactly what Reddit sends us, which I think we would do here: https://github.com/floccusaddon/floccus/blob/develop/src/ui/views/native/AddBookmarkIntent.vue#L103 |
Thank you for getting back quickly. I currently don't have any android dev tools setup. But could try to do that if that was helpful. As mentioned, the issue is with both sharing link via Stealth and Brave. If I was sharing with a messaging app, it would just be the link (no other text). Although in Stealth I also have the option of "Share Post" which would share text as well. In Brave I don't see any other option. Given that Reddit is fairly widely used and you are already fetching the URL, would it not be relatively simple to just look for the title in a different field depending on the hostname? Do you use another Android browser where that would work better? |
Ah, I misunderstood and thought the link was being shared by the Reddit App, but I see now that it was from a browser. I see the same behaviour when I share a reddit link from mobile Firefox to floccus on my Android phone. I think there are 2 questions:
Really, Reddit should return a sensible title for this page :-) I notice that when I load the page in my browser, the tab title starts as "Reddit - dive into anything" and then changes later, presumably based on some JavaScript. |
Describe the feature you'd like to request
Currently when sharing a Reddit link with floccus on it just populates the title with the generic title "Reddit - Dive into anything".
Instead it should use the title of the actual Reddit post.
So for example when sharing
https://www.reddit.com/r/browsers/comments/lxhiyt/floccus_now_supports_syncing_bookmarks_across/
, the title should befloccus now supports syncing bookmarks across browsers via Google Drive
.Describe the solution you'd like
While the
title
element in the header is generic, there are places within the HTML that do contain the title:And:
Describe alternatives you've considered
I tried sharing with Brave browser and Stealth Reddit client.
Another alternative is to share the link with myself on some messaging app to proceed on a desktop (not using floccus in that case).
The text was updated successfully, but these errors were encountered: