Pull more data for likes and bookmarks #370
Labels
No labels
Code
Contacts
Design
F-Droid
IndieWeb
Location
Mastodon
Media
Pixelfed
Pleroma
Posting
Question
Reader
Tracker
Translation
Usability
bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
inhji/indiepass-android#370
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a user, I'd love the app to populate the title of the URL I'm liking or bookmarking so I don't have to type on mobile.
For example, when I Like or Bookmark a URL from my phone, the default post looks like this:
and the anchor has an empty text:
<a href="Coronavirus in N.Y. Live Updates: Gatherings of Up to 10 People Allowed https://nyti.ms/3bYgvp6" class="p-name u-url"> </a>The Bookmark type has similar issues:
<a href="Coronavirus in N.Y. Live Updates: Gatherings of Up to 10 People Allowed https://nyti.ms/3bYgvp6" class="p-name u-url"> </a>I'll do another effort, tried it a couple of times but got stuck on weird things :)
@swentel I do this on the backend. Micropub query?
@dshanske well, I actually see that data coming in, so I think I should be able to fix it.
So I've been wondering, there's no title field for the like post in indigenous. Does it make sense to expose that, or isn't that something that should happen on the server ? @dshanske I think @smaffulli uses wordpress, so I assume this is something that should rather be handled on the server for the like part?
(that said, I'm still looking for EXTRA_TITLE though)
Also, I just noticed the actual problem on the screenshot, and a bit confused: @smaffulli are you adding the text in the single url field on indigenous? I'm simply wondering how it gets posted? Because as far as I know, I only populate the url now.
@swentel I made a screencast of the flow of a bookmark from Indigenous to WordPress. This is what happens on my screen: https://photos.app.goo.gl/CoZ9ZCJSqTSsNG7W8
I did some other tests to better understand the issue myself. I believe the behavior depends on the page being bookmarked... or it's the WordPress backend that is sometimes doing magic, failing other times? I know too little to make any guess.
See the examples I left on my blog to debug
https://maffulli.net/2020/06/02/6346/
https://maffulli.net/2020/06/02/6345/
https://maffulli.net/2020/06/02/6343/
https://maffulli.net/2020/06/02/6341/
as a user, I'd expect to have a clearer representation on Indigenous of what the post will look like on my blog. From the app it's very hard to understand that: I only see a mix of url and title of a page being liked or bookmarked. The title of the post not being populated automatically means that my posts will have no pretty permalink, to start.
From what I understand, Content is basically a comment to a post I like/bookmark: is that correct?
Interesting. @dshanske Is it possible there's a bug in wordpress templates then somehow?
@smaffulli I'm working to prefill the title in bookmarks too now. As far as representation goes, that's tricky since the app has no idea what backend is used. For instance, I use Drupal, someone else might use a static site, so I don't know how things look on anyone's site :)
The backend does do this... through Post Kinds...it tries to find a title if one isn't passed.
ok, as you see in the first screenshot, the title is in the href, which is kind of weird :) (not sure who does that though)
More data is pulled in. Will be testing this a few days, a new release should be there in a week or so.