Closed ajones05 closed 8 years ago
API will be required for mobile app once done cc @abdulhafeez
done
@ajones05 you can test it here
http://www.seearound.me/admin/mobile-api/before-save-post/user_id/276
for example https://www.test.com/sub1/sub5/sub3/...?test=yyy
@abdulhafeez mobile API for check links http://www.seearound.me/admin/mobile-api/before-save-post https://github.com/ajones05/seearound.me/wiki/Mobile-Api-Reference#-mobilebefore-save-post
Thanks. It looks like it doesn't work quite right at the moment. Right now it seems to catch many duplicates that are not actually duplicate. For example, I tried to create a new post and I got the alert that the URL was duplicate. I clicked to see the original post, but it was actually a different URL. Here's the new post I tried to create (URL in post: http://sfist.com/2016/04/29/when_we_rise_white_night_reenactment.php) Here's what it showed as the original when I hit "See post" (URL in post: http://sfist.com/2016/01/02/video_thiefs_caught_stealing_luxury.php)
fixed
If a user includes a link in a new post, check if someone else has already posted that link. If so, create a message that says "Another user has already shared that same link: do you want to see that post?" And options are "Cancel", "See post" or "Post anyway"
That should help avoid duplicate posts about the same thing. It should just check against links with at least one subfolder (so no base URL like hello.com) and not reference anything after the URL like ?ncid or ?utm codes from Omniture or Google Analytics. Does that make sense?