MLTSHP / best-of-mltshp-bot

Posts new feed items to Mastodon
1 stars 0 forks source link

Bot posts links to MLTSHP repost instead of original post #10

Closed tmpkco closed 4 months ago

tmpkco commented 4 months ago

When the bot posts an image, it’s not posting a link to the original account that has all the likes. It’s posting a link to MLTSHP account instead of a link to the original post that has gotten all the likes. The latter behavior is the way the twitter bot operated

Example: this is the link the bot posts: https://mltshp.com/p/1Q5J1 (1 like) But that is a saved to shake repost of this: https://mltshp.com/p/1Q5I8 (edited)

The reposted image often has few to zero likes, making it look unpopular. It also erases the comments and context that sometimes helps explain the post.

bradchoate commented 4 months ago

Since the bot consumes the https://mltshp.com/user/mltshp/rss feed, it is using the link provided there, which is the repost. To address this, we have some choices:

  1. The bot could be updated to fetch the repost page link and gather the original post link (always included in an element found using the selector .content .originally-posted-by .the-post).
  2. MLTSHP's RSS feed could be updated to include an atom:link element with a "via" rel attribute to link to originating post. This would also require changes to the bot to consume this new element. This would be applied to all RSS feeds.
  3. MLTSHP could alter the feed output for the "Popular" RSS feed specifically, so that it directly links to the originating post instead of the repost.
dphiffer commented 4 months ago

Please see: https://github.com/MLTSHP/mltshp/pull/760

And related issue: https://github.com/MLTSHP/mltshp/issues/754

bradchoate commented 4 months ago

Verified fixed (via implementing option 3).