Pull more data for likes and bookmarks #370

Closed
opened 2020-05-24 00:42:15 +02:00 by smaffulli · 10 comments
smaffulli commented 2020-05-24 00:42:15 +02:00 (Migrated from github.com)

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:

image

and the anchor has an empty text:

image

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

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: ![image](https://user-images.githubusercontent.com/1348736/82741832-a89f9380-9d56-11ea-9312-a2feaac58298.png) and the anchor has an empty text: ![image](https://user-images.githubusercontent.com/1348736/82741838-c1a84480-9d56-11ea-9dbc-5c8cc67a2810.png) ```<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>```
swentel commented 2020-05-27 18:41:47 +02:00 (Migrated from github.com)

I'll do another effort, tried it a couple of times but got stuck on weird things :)

I'll do another effort, tried it a couple of times but got stuck on weird things :)
dshanske commented 2020-05-27 18:48:03 +02:00 (Migrated from github.com)

@swentel I do this on the backend. Micropub query?

@swentel I do this on the backend. Micropub query?
swentel commented 2020-05-27 18:49:35 +02:00 (Migrated from github.com)

@dshanske well, I actually see that data coming in, so I think I should be able to fix it.

@dshanske well, I actually see that data coming in, so I think I should be able to fix it.
swentel commented 2020-06-01 21:00:41 +02:00 (Migrated from github.com)

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)

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)
swentel commented 2020-06-01 21:08:10 +02:00 (Migrated from github.com)

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.

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.
smaffulli commented 2020-06-02 10:49:39 +02:00 (Migrated from github.com)

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

@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?
swentel commented 2020-06-03 19:15:10 +02:00 (Migrated from github.com)

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 :)

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 :)
dshanske commented 2020-06-03 19:24:12 +02:00 (Migrated from github.com)

The backend does do this... through Post Kinds...it tries to find a title if one isn't passed.

The backend does do this... through Post Kinds...it tries to find a title if one isn't passed.
swentel commented 2020-06-03 20:29:34 +02:00 (Migrated from github.com)

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)

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)
swentel commented 2020-06-03 21:39:18 +02:00 (Migrated from github.com)

More data is pulled in. Will be testing this a few days, a new release should be there in a week or so.

More data is pulled in. Will be testing this a few days, a new release should be there in a week or so.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
inhji/indiepass-android#370
No description provided.