X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=modules%2Fbackend-rpc.php;h=7ccb30692bc7c1723c52cb6632be9b4837cb5731;hb=2e7f046f65bd6d3a9417484bc4d6c9855cf39f7e;hp=cd1bcb84bdf46e070f43a9deaf6316144a477d07;hpb=f29033f86c41349237a9619137207083ea43a371;p=tt-rss.git diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index cd1bcb84..7ccb3069 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -467,8 +467,10 @@ if ($subop == "regenOPMLKey") { print ""; - 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 ""; print "";