summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-07-17 00:39:13 +0400
committerAndrew Dolgov <[email protected]>2014-07-17 00:39:13 +0400
commit7416305704c4f1637b6db30bc17910860d993b22 (patch)
treeff9d9bedabe6bbea598701386669f48faa5ee34e
parent96ad6edc6c4562636312af3f23fffcdc9d4626a9 (diff)
fix sharebyurl identifying articles by link instead of special synthesized guid which caused feed entries overwriting shared entries if their link matched
-rw-r--r--classes/article.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/article.php b/classes/article.php
index f796bf630..9aef107ec 100644
--- a/classes/article.php
+++ b/classes/article.php
@@ -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");