]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix broken code in OStatus feed maint/test scripts (using field name from older dev...
authorBrion Vibber <brion@pobox.com>
Mon, 4 Oct 2010 17:27:03 +0000 (10:27 -0700)
committerBrion Vibber <brion@pobox.com>
Mon, 4 Oct 2010 17:27:03 +0000 (10:27 -0700)
plugins/OStatus/scripts/resub-feed.php
plugins/OStatus/scripts/testfeed.php

index 121d12109a1f1fb380d2085e257f2440180a2633..8803c0118b89ff20d12d27aac6af9b6203dfb8d3 100644 (file)
@@ -38,7 +38,7 @@ if (empty($args[0]) || !Validate::uri($args[0])) {
 $feedurl = $args[0];
 
 
-$sub = FeedSub::staticGet('topic', $feedurl);
+$sub = FeedSub::staticGet('uri', $feedurl);
 if (!$sub) {
     print "Feed $feedurl is not subscribed.\n";
     exit(1);
@@ -57,7 +57,7 @@ if ($ok) {
     print "Could not confirm.\n";
 }
 
-$sub2 = FeedSub::staticGet('topic', $feedurl);
+$sub2 = FeedSub::staticGet('uri', $feedurl);
 
 print "\n";
 print "New state:\n";
index 82a1c65865d849b82834a7dd02d17051a7ca3059..149bcc343ffb13daf8c65fb3e740f37febef96d0 100644 (file)
@@ -45,7 +45,7 @@ $skip = have_option('skip') ? intval(get_option_value('skip')) : 0;
 $count = have_option('count') ? intval(get_option_value('count')) : 0;
 
 
-$sub = FeedSub::staticGet('topic', $feedurl);
+$sub = FeedSub::staticGet('uri', $feedurl);
 if (!$sub) {
     print "Feed $feedurl is not subscribed.\n";
     exit(1);