summaryrefslogtreecommitdiff
path: root/plugins/OStatus
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-04 10:27:03 -0700
committerBrion Vibber <brion@pobox.com>2010-10-04 10:27:03 -0700
commit5dee862b2cb9cbcb0e73842802dc2387c8e84825 (patch)
tree720f7857626281f1022ce6d93ab1e8bd427789bf /plugins/OStatus
parent5c2b073a50341be024a87f5f17f72684d3004b55 (diff)
Fix broken code in OStatus feed maint/test scripts (using field name from older dev code, would load up wrong record)
Diffstat (limited to 'plugins/OStatus')
-rw-r--r--plugins/OStatus/scripts/resub-feed.php4
-rw-r--r--plugins/OStatus/scripts/testfeed.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/OStatus/scripts/resub-feed.php b/plugins/OStatus/scripts/resub-feed.php
index 121d12109..8803c0118 100644
--- a/plugins/OStatus/scripts/resub-feed.php
+++ b/plugins/OStatus/scripts/resub-feed.php
@@ -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";
diff --git a/plugins/OStatus/scripts/testfeed.php b/plugins/OStatus/scripts/testfeed.php
index 82a1c6586..149bcc343 100644
--- a/plugins/OStatus/scripts/testfeed.php
+++ b/plugins/OStatus/scripts/testfeed.php
@@ -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);