1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 19:05:55 +00:00

use hashed guids in a hopefully backwards compatible fashion

This commit is contained in:
Andrew Dolgov
2013-04-15 19:28:11 +04:00
parent bc7a144dd5
commit 5e3d5480f7
2 changed files with 22 additions and 12 deletions

View File

@@ -88,7 +88,7 @@ class Article extends Handler_Protected {
static function create_published_article($link, $title, $url, $content, $labels_str,
$owner_uid) {
$guid = sha1($url . $owner_uid); // include owner_uid to prevent global GUID clash
$guid = 'SHA1:' . sha1("ttshared:" . $url . $owner_uid); // include owner_uid to prevent global GUID clash
$content_hash = sha1($content);
if ($labels_str != "") {