1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 11:21:29 +00:00

make published OPML use common secret key code

This commit is contained in:
Andrew Dolgov
2010-11-08 19:36:24 +03:00
parent f29033f86c
commit 2e7f046f65
4 changed files with 10 additions and 14 deletions

View File

@@ -467,8 +467,10 @@
if ($subop == "regenOPMLKey") {
print "<rpc-reply>";
set_pref($link, "_PREFS_PUBLISH_KEY",
sha1(uniqid(rand(), true)), $_SESSION["uid"]);
update_feed_access_key($link, 'OPML:Publish',
false, $_SESSION["uid"]);
$new_link = opml_publish_url($link);
print "<link><![CDATA[$new_link]]></link>";
print "</rpc-reply>";