New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about Likes are welcome #1

Open
scripting opened this Issue Nov 16, 2018 · 11 comments

Comments

Projects
None yet
4 participants
@scripting
Owner

scripting commented Nov 16, 2018

I just announced this project on my blog.

Likes is a Node-based server that manages an SQL database of triplets: username, URL of the thing they liked, and a timestamp. When you like something, it adds a record to the database. When you unlike, the record is removed. There's a demo app that shows how to hook up to the server in your own web apps. I've factored the code so there's an API and UI. You probably should only use the API in your stuff, though you're welcome to crib it all. We use Twitter for identity. If you want to run your own server, which is fine with me, you will need to create an app on Twitter. Questions are welcome.

Questions are welcome. This is the place to ask them. 💥

@scripting

This comment has been minimized.

Owner

scripting commented Nov 16, 2018

BTW, I haven't written a lot of docs yet, because I'm not sure how much people will need, or on what topics. I think the code is easy enough to crib. Also not sure if other people will want to run a server.

@dodyg

This comment has been minimized.

dodyg commented Nov 26, 2018

I love this feature "These are the items you've liked...". I think it would be neat if this information can be aggregated across participating likes servers.

@scripting

This comment has been minimized.

Owner

scripting commented Nov 26, 2018

Hi @dodyg -- glad you like the feature. It could be included with the likes on other servers. There's a defined API for getting that list (that's how the home page gets it, through the API). It's item #3 in the list.

@scripting

This comment has been minimized.

Owner

scripting commented Nov 29, 2018

Likes first appeared on Scripting News 19 days ago.

If you have questions or comments you can post them here.

I'm interested in knowing what you think.

@kevinctofel

This comment has been minimized.

kevinctofel commented Nov 30, 2018

I LOVE the feature(s). For some reason, I can't "like" a post though. Have tried a few times on my Chromebook, which uses the Chrome browser, obviously. I get through the Twitter authorization and when I come back to click a "like", I get pushed back to the Twitter authorization. Could be an issue specific to me but wanted to mention. Happy to troubleshoot or provide additional information.

@scripting

This comment has been minimized.

Owner

scripting commented Nov 30, 2018

Hey Kevin, glad you love the feature. I'm going to build on it because it's such a hit (I love it too).

Here's what's probably going wrong.

It depends on localStorage to store the info that Twitter sends us after you log in.

https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

I tried doing a search to see if there are any issues re localStorage on Chromebooks, but didn't come up with anything.

Is it possible you have cookies turned off? Sometimes that also turns off localStorage.

I can put together a simple test page to determine if that's the problem.

@kevinctofel

This comment has been minimized.

kevinctofel commented Nov 30, 2018

Thanks - I doubled checked and Cookies are enabled / allowed for all sites. I then turned that setting off and renabled it. Fixed! :)

@scripting

This comment has been minimized.

Owner

scripting commented Nov 30, 2018

The usual remedy. ;-)

@cbasturea

This comment has been minimized.

cbasturea commented Dec 1, 2018

I'd love to be able to go to the Links tab of scripting.com and 'like' the links that you share in that page.

@scripting

This comment has been minimized.

Owner

scripting commented Dec 1, 2018

@cbasturea -- that's an idea that hasn't come up yet. Will think about it...

@scripting

This comment has been minimized.

Owner

scripting commented Dec 2, 2018

Lots of changes today, mostly tweaks and must-have options --

http://scripting.com/2018/12/02/154005.html

Dave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment