]> git.wh0rd.org - tt-rss.git/commitdiff
fix sharebyurl identifying articles by link instead of special synthesized guid which...
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 16 Jul 2014 20:39:13 +0000 (00:39 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 16 Jul 2014 20:39:13 +0000 (00:39 +0400)
classes/article.php

index f796bf6302b74417eeb5a2f36f8ae687fe60c330..9aef107ec1e9a0d5a96b4a2985bdc06b4ff7eb23 100644 (file)
@@ -107,7 +107,7 @@ class Article extends Handler_Protected {
 
                // only check for our user data here, others might have shared this with different content etc
                $result = db_query("SELECT id FROM ttrss_entries, ttrss_user_entries WHERE
-                       link = '$url' AND ref_id = id AND owner_uid = '$owner_uid' LIMIT 1");
+                       guid = '$guid' AND ref_id = id AND owner_uid = '$owner_uid' LIMIT 1");
 
                if (db_num_rows($result) != 0) {
                        $ref_id = db_fetch_result($result, 0, "id");