CodepadME / laravel-tricks

The source code for the Laravel Tricks website
http://laravel-tricks.com
MIT License
967 stars 297 forks source link

Feature: Send to Twitter on new post #7

Open chadwithuhc opened 10 years ago

chadwithuhc commented 10 years ago

I'd like to see each post get a tweet from the LaravelTricks twitter account. Then I could easily follow the new posts that come out. Votes?

msurguy commented 10 years ago

While I like the auto-tweeting idea, here are some questions that have to be solved first:

If we were to implement this, I think we would need to add a unique hash (like "jh76dKi") as a column in the tricks table and have that as a permanent identifier beside "id" (so that the actual IDs aren't revealed). This would serve as a part of permalink that then wouldn't change no matter what the author does editing the trick.

This way something like mytricks.com/v/jh76dKi -> would redirect to actual trick.

What do you think?

chadwithuhc commented 10 years ago

I think something on at least a 15 minute delay would be nice. This would allow them to have time to go back and edit something they did wrong right after they posted it. I often do that since there is no preview option (maybe another request, but I don't think it's a necessity).

I have noticed a problem with the trick URLs changing as is. I've posted links to other tricks in the comments, then they later on changed titles and the links are now broken. A sharable URL with the unique hash would help solve that.

Maybe we create new tickets for Share URL, then come back to this.