forked from GNUsocial/gnu-social
Fix broken code in OStatus feed maint/test scripts (using field name from older dev code, would load up wrong record)
This commit is contained in:
parent
5c2b073a50
commit
5dee862b2c
@ -38,7 +38,7 @@ if (empty($args[0]) || !Validate::uri($args[0])) {
|
|||||||
$feedurl = $args[0];
|
$feedurl = $args[0];
|
||||||
|
|
||||||
|
|
||||||
$sub = FeedSub::staticGet('topic', $feedurl);
|
$sub = FeedSub::staticGet('uri', $feedurl);
|
||||||
if (!$sub) {
|
if (!$sub) {
|
||||||
print "Feed $feedurl is not subscribed.\n";
|
print "Feed $feedurl is not subscribed.\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -57,7 +57,7 @@ if ($ok) {
|
|||||||
print "Could not confirm.\n";
|
print "Could not confirm.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$sub2 = FeedSub::staticGet('topic', $feedurl);
|
$sub2 = FeedSub::staticGet('uri', $feedurl);
|
||||||
|
|
||||||
print "\n";
|
print "\n";
|
||||||
print "New state:\n";
|
print "New state:\n";
|
||||||
|
@ -45,7 +45,7 @@ $skip = have_option('skip') ? intval(get_option_value('skip')) : 0;
|
|||||||
$count = have_option('count') ? intval(get_option_value('count')) : 0;
|
$count = have_option('count') ? intval(get_option_value('count')) : 0;
|
||||||
|
|
||||||
|
|
||||||
$sub = FeedSub::staticGet('topic', $feedurl);
|
$sub = FeedSub::staticGet('uri', $feedurl);
|
||||||
if (!$sub) {
|
if (!$sub) {
|
||||||
print "Feed $feedurl is not subscribed.\n";
|
print "Feed $feedurl is not subscribed.\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user