Tag post author in tweet #670
Comments
@jamesmontemagno is running the IFTTT bot. There might be some limitations to what it can do. |
Just a limitation of IFTTT as it just reads the RSS feed. We could setup a function and do tweets and such, but seems like a bunch of work and have to register with twitter dev and such.... |
Ah, I see. I originally thought the tweet was sent from the code in this repository and that has the Twitter handle. |
yeah, just an IFTTT on an RSS feed :( |
@jamesmontemagno if we enriched the feed somehow for each of the Entries in the RSS, would that help fishing out the Author twitter handle. |
I am sure if we added @ whatever in the title it would work technically. |
@jamesmontemagno what do you do when the title is too long? Truncate it? Should we somehow ensure that it fits a tweet? |
hmmmmmm I can't imaging titles of blogs being more than 280 characters. If the title was: "Title + by @ twitter" handle then it would show up. If they dont' have a twitter handle then nothing would change there. |
In the Atom feed https://www.planetxamarin.com/feed, the author is in in a contributor tag: <a10:contributor>
<a10:name>Allan Ritchie</a10:name>
<a10:uri>https://allancritchie.net/</a10:uri>
<a10:email>allan.ritchie@example.com</a10:email>
</a10:contributor> Could we perhaps add another tag as extensionElement as defined in https://tools.ietf.org/html/rfc4287#section-6.4 to add the Twitter handle? And could we then use that information from IFTTT? |
So based on the discussion and my analysis, if we make the following change in the PreviewViewModel:
It would that look like this on Twitter and PlanetXamarin.com/preview:
I added the IsNullOrEmpty check to make sure that there is a twitter handle value, as I noticed several users not having that property populated. |
Let me know if you guys are ok with that or I can update my PR for this @Cheesebaron @jamesmontemagno @lothrop |
@saamerm Why are you changing the preview model? It is only used here: https://www.planetxamarin.com/preview not for the feed itself. In the case of the preview. I would rather have the author name go to their blog/social. However, it is irrelevant from the actual contents of the feed which is being discussed here. |
@Cheesebaron ah yes you are right. I just realized that it's a lot more complicated while trying to fix my PR.
Based on my parsing of the planetxamarin feed, there is no property that could be used to match the author in our solution, to the feed item, except the Author's Name. Keeping that in mind, it would be a lot easier to match the author with the feed item if we could store a users link prefix. Because we would be able to match whether the feed item link url, contains the link prefix for that author, and then display the twitter handle accordingly. |
https://github.com/planetxamarin/planetxamarin/blob/master/src/Firehose.Web/Infrastructure/NewCombinedFeedSource.cs#L126 this line contains the feed items for a specific author. |
Is your feature request related to a problem? Please describe.
I never notice when one of my blog posts gets featured by Planet Xamarin.
Describe the solution you'd like
It would be nice if the tweet announcing the new post would contain my Twitter handle so I can get notified of its existence and can further push the tweet's visibility.
Describe alternatives you've considered
Adding a column in TweetDeck to show me only those tweets.
Additional context
I can implement a pull request if this is desired.
The text was updated successfully, but these errors were encountered: